CN112188327A - Optical network unit burning method, device, medium and equipment - Google Patents

Optical network unit burning method, device, medium and equipment Download PDF

Info

Publication number
CN112188327A
CN112188327A CN202011029865.2A CN202011029865A CN112188327A CN 112188327 A CN112188327 A CN 112188327A CN 202011029865 A CN202011029865 A CN 202011029865A CN 112188327 A CN112188327 A CN 112188327A
Authority
CN
China
Prior art keywords
burning
switch
network card
onu
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011029865.2A
Other languages
Chinese (zh)
Other versions
CN112188327B (en
Inventor
胡安宁
剧修洋
汤明超
李伦伊
吴志远
谢虎
李琳
荣宇卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sino Telecom Technology Co inc
Original Assignee
Sino Telecom Technology Co inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sino Telecom Technology Co inc filed Critical Sino Telecom Technology Co inc
Priority to CN202011029865.2A priority Critical patent/CN112188327B/en
Publication of CN112188327A publication Critical patent/CN112188327A/en
Application granted granted Critical
Publication of CN112188327B publication Critical patent/CN112188327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a burning method of an optical network unit. The switch is in communication connection with a first network card and a second network card configured by a computer respectively, at least one target optical network unit ONU is connected with the rest ports of the switch one by one, the switch completes burning of at least one target ONU one by receiving a port control command transmitted by the first network card and receiving a burning command transmitted by the second network card, automatic factory setting of a plurality of ONUs of the same type can be realized, and production efficiency is improved.

Description

Optical network unit burning method, device, medium and equipment
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method, a device, a medium and equipment for burning an optical network unit.
Background
In The present Network, an Optical Network Unit (ONU) is usually used as a terminal device directly connected To a Home (Fiber To The Home, FTTH), and is usually installed in a living room, a bedroom, etc. by a user.
The ONU factory needs to burn production information such as MAC address and SerialNumber when producing, and if the ONU needs to have WIFI, the ONU needs to burn WIFI SSID, Password and the like. And the information is stored in Flash, and the burning of the information is manually carried out through telnet terminals and fixed IP from telnet to ONU. The telnet is used for logging in, and generally, after Flash is burnt in a factory, since Flash is burnt in a unified burning file, MAC and IP of all ONU are consistent during production test. In addition, if telnet is used, one computer can only log in one ONU for configuration, if mass production is carried out, a plurality of people and computers are needed for testing, and resources such as manpower, material resources and the like are consumed; meanwhile, the ONU needs to burn one MAC, a WIFI SSID, a Password, a SerialNumber and the like, and if manual input is carried out manually, the ONU is cumbersome and is very easy to make mistakes.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a medium and equipment for burning an optical network unit, which can realize automatic factory setting of a plurality of same-type ONUs and improve the production efficiency.
In a first aspect, an embodiment of the present invention provides a method for burning an optical network unit, where the method includes:
the method comprises the following steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch;
connecting at least one target optical network unit ONU with the rest ports of the switch one by one;
and the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one.
Optionally, the port control command includes:
setting a first port of the switch to be in a normally open state;
opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs;
and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
Optionally, before receiving the burning command transmitted by the second network card to complete burning of the target ONU, the method further includes:
storing information to be burned into a directory file of the computer, and storing an execution command into an execution file of the computer;
correspondingly, the switch receives the burning command transmitted by the second network card to complete the burning of the target ONU, including:
after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU.
Optionally, after receiving the burning command transmitted by the second network card to complete burning of the target ONU, the method further includes:
and storing the burning result of the target ONU into a recording file.
Optionally, the information to be burned includes: and the login IP and the user name and the password of the target ONU.
In a second aspect, an embodiment of the present invention provides a device for burning an optical network unit, where the device includes:
the network card connecting module is used for enabling the switch to be in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch;
the optical network unit connecting module is used for connecting at least one target optical network unit ONU with the rest ports of the switch one by one;
and the burning module is used for completing burning of at least one target ONU one by the switch through receiving the port control command transmitted by the first network card and receiving the burning command transmitted by the second network card.
Optionally, the port control command includes:
setting a first port of the switch to be in a normally open state;
opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs;
and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
Optionally, the method further includes:
the storage module is used for storing information to be burned into a directory file of the computer and storing an execution command into an execution file of the computer before receiving the burning command transmitted by the second network card so as to complete burning of the target ONU;
correspondingly, the burning module is specifically configured to:
after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU.
Optionally, the method further includes:
and the storage module is used for storing the burning result of the target ONU into a recording file after receiving the burning command transmitted by the second network card so as to finish the burning of the target ONU.
Optionally, the information to be burned includes: and the login IP and the user name and the password of the target ONU.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for burning an optical network unit as described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the burning method for an optical network unit as described above.
The method comprises the steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch; connecting at least one target optical network unit ONU with the rest ports of the switch one by one; the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one, so that automatic factory setting of a plurality of ONUs of the same type can be realized, and the production efficiency is improved.
Drawings
Fig. 1 is a flowchart of a burning method for an optical network unit according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method for connecting an optical network unit according to an embodiment of the present invention;
fig. 3 is a flowchart of a burning method for an optical network unit according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer test program interface according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of a program module according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a burning apparatus of an optical network unit according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Firstly, the implementation of the scheme can be based on the following premises:
the network module distinguishes a server side and a client side.
The application program is divided into the server and the client, but different from most application programs needing to be divided into the server and the client, the product does not want to set up a computer as a server separately in consideration of cost control, program starting freedom, convenience and the like.
Therefore, after the program is started, the network module firstly analyzes the information recorded in the configuration file to judge whether the program is a server or not, if the program is the server, the program is a server and a client, and other computers are clients.
And determining a network transmission communication protocol.
According to the network environment of the program, UDP is determined as an underlying network transmission communication protocol, but considering that the UDP protocol is an unreliable protocol, the problems of network data packet loss, no guarantee of the sequence and the like occur, and therefore the scheme of using UDP + KCP is selected to realize reliable UDP transmission. In addition, in the preparation stage of user login, TCP is used as a network transmission communication protocol, so that the reliability of user login is ensured.
Specifying parameter settings in the synchronization logic.
The parameters needed in the synchronization logic are specified so that the parameters set in advance can be conveniently used in the process of realizing the synchronization algorithm, and the method specifically comprises the following steps: the method comprises the steps of determining the IP address of a server, the network port of the server, the IP address of a local client, the frame interval of the server, the frame interval of heartbeat packets, the time for the server to judge the overtime drop of the client, the time for the client to judge the overtime drop of the server and the frame rate multiple of the client.
A synchronization message data protocol is specified.
Firstly, the message type needs to be specified, specifically: synchronous preparation, synchronous start, data tracking, synchronous exit, heartbeat package, and custom message. Then, message data needs to be specified, specifically: message type, player ID of message origin, player ID of message target, tracking data, Ping value timestamp, custom message. Finally, an uplink protocol of data sent by the client to the server and a downlink protocol of data sent by the server to the client need to be specified, wherein the uplink protocol specifically includes: session ID, message list, and the downlink protocol specifically includes frame ID and message list.
Example one
Fig. 1 is a flowchart of a method for burning an optical network unit according to an embodiment of the present invention, where the method may be executed by a burning apparatus of an optical network unit according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. The method specifically comprises the following steps:
s110, the switch is in communication connection with a first network card and a second network card which are configured by the computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with the first port of the switch.
Specifically, the embodiment of the invention completes the burning work of the ONU through the switch, and the computer for burning the ONU is provided with two network cards. Because the switch does not have its own input/output device, when the switch is configured, it is generally configured by connecting a computer to a configuration interface (Console interface) or a management interface (MGMT interface) of the switch, that is, a first network card (port a) provided in the embodiment of the present invention is connected to a management port of the switch, and a first port of the switch, that is, an interface of the switch, generally speaking, the switch may have multiple interfaces, for example, the switch provided in the embodiment of the present invention has 9 interfaces, and a second network card (port B) is connected to the switch interface 1.
S120, connecting at least one target optical network unit ONU with the rest ports of the switch one by one.
Specifically, the switch provided in the embodiment of the present invention has 9 interfaces, and LAN ports of 8 ONUs are respectively connected to 2-9 interfaces of the switch, that is, ONU1 is connected to switch interface 2, ONU2 is connected to switch interface 3, ONU3 is connected to switch interface 4. As shown in fig. 2, fig. 2 is a schematic diagram of a method for connecting an optical network unit according to an embodiment of the present invention.
And S130, the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one.
Optionally, the port control command includes: setting a first port of the switch to be in a normally open state; opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs; and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
The target ONU refers to the ONU needing burning information, and the embodiment of the invention connects the target ONU with each interface of the switch. When the switch is connected with a plurality of target ONUs, the switch is required to burn the target ONUs one by one, and the current target ONU is the target ONU to be burned at the current moment.
Specifically, the first port of the switch is connected with the network card B of the computer, and the burning operation of the ONU is completed through the communication connection, so that the first port of the switch is set to be in a normally open state to ensure the communication connection between the switch and the computer at any time. And because the switch is connected with a plurality of target ONUs, and the burning operation is performed on the ONUs one by one, when which target ONU needs to be burned, the communication connection between the target ONU and the switch is opened, that is, the port of the switch connected with the current target ONU is opened, and the ports of the switches connected with the other target ONUs are closed.
Specifically, for example, the program starts the network card a and the telnet switch, and configures ports 1 to 9 of the switch to be in a full transparent transmission mode. If the switch burns the ONU1, the switch port 1-2 is set to the open state (up) and the port 3-9 is set to the open state (down). If the ONU1 finishes burning, the port 2 is down, the port 3 is up, and the states of the other ports are unchanged (down) through the network port a.
Optionally, the information to be burned includes: and the login IP and the user name and the password of the target ONU.
The method comprises the steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch; connecting at least one target optical network unit ONU with the rest ports of the switch one by one; the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one, so that automatic factory setting of a plurality of ONUs of the same type can be realized, and the production efficiency is improved.
Example two
Fig. 3 is a flowchart of a method for burning an optical network unit according to a second embodiment of the present invention, where the second embodiment of the present invention provides a specific operation flow for burning a current target ONU, and before receiving a burning command transmitted by the second network card to complete burning of the target ONU, the method further includes: storing information to be burned into a directory file of the computer, and storing an execution command into an execution file of the computer; correspondingly, the switch receives the burning command transmitted by the second network card to complete the burning of the target ONU, including: after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU. The method specifically comprises the following steps:
s210, the switch is respectively in communication connection with a first network card and a second network card configured by the computer, wherein the first network card is connected with a management port of the switch, and the second network card is connected with the first port of the switch.
S220, connecting at least one target optical network unit ONU with the rest ports of the switch one by one.
And S230, storing the information to be burned into a directory file of the computer, and storing the execution command into an execution file of the computer.
Specifically, the information to be burned is stored in a main directory onu.info file (directory file), and the command to be executed by the burning information is stored in an onu.sh file (execution file), where the onu.info includes an ONU login IP and a user name and password. As shown in fig. 4 and 5, fig. 4 is a schematic display diagram of a computer test program interface according to a second embodiment of the present invention, fig. 5 is a schematic design diagram of a program module according to a second embodiment of the present invention, fig. 5 is a schematic design idea of ONU burning, a UI interface is displayed to facilitate operation of a worker, for example, the worker may input a corresponding configuration file (or program information) through the test program interface illustrated in fig. 4, a central control module of the computer analyzes the configuration file and a test command, stores the test interface, and controls a switch and ONU device using a telnet module, so as to finally achieve the purpose of completing the ONU burning.
And S240, after the switch receives the port control command transmitted by the first network card and reads the directory file from the computer to determine the target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card and reads the execution command in the execution file to complete the burning of the target ONU.
Specifically, after reading the onu.info file, the program records information to the current target ONU through the network card B telnet to the ONU1 according to the script command onu.sh.
Optionally, after receiving the burning command transmitted by the second network card to complete burning of the target ONU, the method further includes: and storing the burning result of the target ONU into a recording file.
Specifically, after the burning of the target ONU is completed, the burning result corresponding to the target ONU is stored in an osu.
It should be noted that, after the burning of the target ONU is completed, the embodiment of the present invention may change the opening and closing of the switch port through the first network card, so as to complete the burning of the next target ONU. Specifically, for example, after the ONU1 finishes burning, the port a is enabled to be 2down and 3up, and the burning information of the ONU2 is automatically generated by the ONU. info according to the port correspondence relationship, and similarly, the ONU2 is repeatedly burned by the same method for burning the ONU 1.
The embodiment of the invention provides an automatic implementation method for supporting a plurality of ONUs to burn, a production line only needs one worker, one computer (two network cards) and one exchanger, a program is programmed by using a pythony language, and the automatic factory setting of the plurality of ONUs of the same type can be realized without manual burning, script recording, script language editing and other operations of a tester, so that the labor cost and the machine cost are reduced to a great extent, and the production efficiency is improved.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a burning device of an optical network unit according to an embodiment of the present invention, where the device specifically includes:
the network card connection module 310 is configured to perform communication connection between an exchanger and a first network card and a second network card configured in a computer, where the first network card is connected to a management port of the exchanger, and the second network card is connected to a first port of the exchanger;
an optical network unit connection module 320, configured to connect at least one target optical network unit ONU with the rest of the ports of the switch one by one;
and the burning module 330 is configured to complete burning of at least one target ONU one by the switch receiving the port control command transmitted by the first network card and receiving the burning command transmitted by the second network card.
Optionally, the port control command includes:
setting a first port of the switch to be in a normally open state;
opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs;
and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
Optionally, the method further includes:
the storage module is used for storing information to be burned into a directory file of the computer and storing an execution command into an execution file of the computer before receiving the burning command transmitted by the second network card so as to complete burning of the target ONU;
correspondingly, the burning module 330 is specifically configured to:
after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU.
Optionally, the method further includes:
and the storage module is used for storing the burning result of the target ONU into a recording file after receiving the burning command transmitted by the second network card so as to finish the burning of the target ONU.
The method comprises the steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch; connecting at least one target optical network unit ONU with the rest ports of the switch one by one; the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one, so that automatic factory setting of a plurality of ONUs of the same type can be realized, and the production efficiency is improved.
Example four
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform:
the method comprises the following steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch;
connecting at least one target optical network unit ONU with the rest ports of the switch one by one;
and the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the computer system in which the program is executed, or may be located in a different second computer system connected to the computer system through a network (such as the internet). The second computer system may provide the program instructions to the computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided in the embodiments of the present application is not limited to the above-described burning operation of the optical network unit, and may also execute the relevant operations in the burning method of the optical network unit provided in any embodiments of the present application.
EXAMPLE five
The embodiment of the present application provides an electronic device, in which a synchronization device for burning of an optical network unit provided in the embodiment of the present application may be integrated. Fig. 7 is a schematic structural diagram of an electronic device according to a fifth embodiment of the present application. As shown in fig. 7, the present embodiment provides an electronic device 400, which includes: one or more processors 420; a storage device 410 to store one or more programs that, when executed by the one or more processors 420, cause the one or more processors 420 to implement
As shown in fig. 7, the electronic device 400 includes a processor 420, a storage device 410, an input device 430, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 4; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 450 in fig. 4.
The storage device 410 is a computer-readable storage medium, and can be used to store a software program, a computer executable program, and program instructions corresponding to a module unit, such as the burning method of the onu in the embodiment of the present application.
The storage device 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 410 may further include memory located remotely from processor 420, which may be connected via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, etc.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A burning method of an optical network unit is characterized by comprising the following steps:
the method comprises the following steps that a switch is in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch;
connecting at least one target optical network unit ONU with the rest ports of the switch one by one;
and the switch receives the port control command transmitted by the first network card and receives the burning command transmitted by the second network card to finish burning at least one target ONU one by one.
2. The method of claim 1, wherein the port control command comprises:
setting a first port of the switch to be in a normally open state;
opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs;
and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
3. The method of claim 2, further comprising, before receiving the burning command transmitted by the second network card to complete burning of the target ONU:
storing information to be burned into a directory file of the computer, and storing an execution command into an execution file of the computer;
correspondingly, the switch receives the burning command transmitted by the second network card to complete the burning of the target ONU, including:
after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU.
4. The method according to claim 2 or 3, wherein after receiving the burning command transmitted by the second network card to complete burning of the target ONU, the method further comprises:
and storing the burning result of the target ONU into a recording file.
5. The method of claim 3, wherein the information to be burned comprises: and the login IP and the user name and the password of the target ONU.
6. An optical network unit burning device, comprising:
the network card connecting module is used for enabling the switch to be in communication connection with a first network card and a second network card which are configured by a computer respectively, wherein the first network card is connected with a management port of the switch, and the second network card is connected with a first port of the switch;
the optical network unit connecting module is used for connecting at least one target optical network unit ONU with the rest ports of the switch one by one;
and the burning module is used for completing burning of at least one target ONU one by the switch through receiving the port control command transmitted by the first network card and receiving the burning command transmitted by the second network card.
7. The apparatus of claim 6, wherein the port control command comprises:
setting a first port of the switch to be in a normally open state;
opening ports of the switch connected with the current target ONU, and closing ports of the switches connected with the other target ONUs;
and after completing the burning of the current target ONU, closing the port of the switch corresponding to the current target ONU, and opening the port of the switch corresponding to the next target ONU.
8. The apparatus of claim 7, further comprising:
the storage module is used for storing information to be burned into a directory file of the computer and storing an execution command into an execution file of the computer before receiving the burning command transmitted by the second network card so as to complete burning of the target ONU;
correspondingly, the burning module is specifically configured to:
after the computer reads the directory file to determine a target ONU to be burned, the switch receives an execution file transmitted by the computer through a second network card, and reads an execution command in the execution file to complete burning of the target ONU.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the method for burning optical network units according to any of claims 1-5.
10. A mobile device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for burning optical network units according to any of claims 1-5 when executing the computer program.
CN202011029865.2A 2020-09-27 2020-09-27 Optical network unit burning method, device, medium and equipment Active CN112188327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011029865.2A CN112188327B (en) 2020-09-27 2020-09-27 Optical network unit burning method, device, medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011029865.2A CN112188327B (en) 2020-09-27 2020-09-27 Optical network unit burning method, device, medium and equipment

Publications (2)

Publication Number Publication Date
CN112188327A true CN112188327A (en) 2021-01-05
CN112188327B CN112188327B (en) 2022-10-14

Family

ID=73944855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011029865.2A Active CN112188327B (en) 2020-09-27 2020-09-27 Optical network unit burning method, device, medium and equipment

Country Status (1)

Country Link
CN (1) CN112188327B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120324068A1 (en) * 2011-06-17 2012-12-20 Microsoft Corporation Direct networking for multi-server units
CN104821925A (en) * 2015-04-28 2015-08-05 福建星网锐捷网络有限公司 Data interaction method, system and device
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
CN105743820A (en) * 2016-04-21 2016-07-06 大连理工大学 ARM+FPGA-architecture-based Ethernet switch for train
US20160301575A1 (en) * 2015-04-07 2016-10-13 Quanta Computer Inc. Set up and verification of cabling connections in a network
WO2017071430A1 (en) * 2015-10-26 2017-05-04 华为技术有限公司 Message processing method, network card, system, information update method, and server
CN108521337A (en) * 2018-03-07 2018-09-11 广州芯德通信科技股份有限公司 A kind of more same type ONU are carried out at the same time the implementation method of default setting
CN109992274A (en) * 2019-04-01 2019-07-09 深圳市鼎阳科技有限公司 Recording device, the method for burning program and readable storage medium storing program for executing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120324068A1 (en) * 2011-06-17 2012-12-20 Microsoft Corporation Direct networking for multi-server units
US20160301575A1 (en) * 2015-04-07 2016-10-13 Quanta Computer Inc. Set up and verification of cabling connections in a network
CN104821925A (en) * 2015-04-28 2015-08-05 福建星网锐捷网络有限公司 Data interaction method, system and device
WO2017071430A1 (en) * 2015-10-26 2017-05-04 华为技术有限公司 Message processing method, network card, system, information update method, and server
CN105450455A (en) * 2015-12-11 2016-03-30 上海市共进通信技术有限公司 System and method for automatically upgrading network devices in batch in factory
CN105743820A (en) * 2016-04-21 2016-07-06 大连理工大学 ARM+FPGA-architecture-based Ethernet switch for train
CN108521337A (en) * 2018-03-07 2018-09-11 广州芯德通信科技股份有限公司 A kind of more same type ONU are carried out at the same time the implementation method of default setting
CN109992274A (en) * 2019-04-01 2019-07-09 深圳市鼎阳科技有限公司 Recording device, the method for burning program and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112188327B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN106685917B (en) The realization method and system that internet of things equipment and controller are intelligently bound
CN107566226B (en) Method, device and system for controlling smart home
EP3118700B1 (en) Intelligent home control method and system based on alljoyn technology
TWI301365B (en)
CN109547502A (en) Firewall ACL management method and device
CN109714367B (en) Equipment access system and method based on Internet
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN110278092A (en) Router long-range control method and system based on MQTT agreement
CN112188327B (en) Optical network unit burning method, device, medium and equipment
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN112688817B (en) Network service issuing method, system and device based on government affair cloud and storage medium
CN111083471A (en) Network camera test system and method
US11411797B2 (en) Device management method and related device
CN111726367A (en) User equipment CPE access binding method, device, system and equipment
CN101621418A (en) Testing method based on thin client remote desktop application
JP2003076619A (en) Communication processor, management device, program and communication system
CN112203170B (en) Upgrading method, device, medium and equipment of optical network unit
CN114301628A (en) Smart home equipment authentication method, device, equipment, system and storage medium
CN110248374B (en) Clock synchronization test system, method, device and storage medium of base station
WO2016180141A1 (en) Virtual machine state management method and device
CN112506546A (en) Version updating method and device for mobile terminal
CN112073322A (en) Discovery method and device of network tester
WO2021098512A1 (en) Method and apparatus for quickly configuring cameras, and computer readable medium
CN106789400B (en) Test method and test system for wireless extension function
CN110958147A (en) Internet of things equipment interconnection strategy configuration system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant