Automation Register ONU Device
ONU
An ONU (Optical Network Unit) is a key component in a Passive Optical Network (PON) system, commonly used in Fiber-to-the-Home (FTTH) deployments. It plays a crucial role in bridging the optical fiber infrastructure to the customer premises. Here’s an overview:
What is an ONU? The ONU is a device installed at the customer's premises to terminate the fiber-optic line and provide data connectivity. It is part of the Optical Line Terminal (OLT) and ONU communication system. It typically converts optical signals from the fiber into electrical signals that end-user devices can use (like routers, PCs, or TVs).
Intro
This Python application is designed to manage Optical Network Unit (ONU) registration and check the status of ONUs based on data stored in a CSV file. It utilizes Telnet for communication with an OLT (Optical Line Terminal) and a MySQL database for storing ONU registration information.
Key points include:
- Reading data from a CSV file. The CSV file contains ONU information, including the attenuation id.
- Connecting to the OLT using Telnet and the Application should be running has access to the OLT.
- MySQL database for storing ONU registration information. Make application able to connect to the database and store the data.
Technologies Used
- Python
- Telnet
- MySQL
Sample Output
This is a sample output from the application, where the gpon-onu1/1/1:2 and gpon-onu1/1/8:1 are the ONU serial numbers.
+---------------+-------------------+
| serial number | gpon-onu_1/1/1:2 |
+---------------+-------------------+
| up | |
| rx | no signal |
| tx | N/A |
| attenuation | N/A |
| | |
+---------------+-------------------+
| down | |
| rx | N/A |
| tx | down |
| attenuation | 6.017(dbm) |
+---------------+-------------------+
+---------------+------------------+
| serial number | gpon-onu_1/1/8:1 |
+---------------+------------------+
| up | |
| rx | -25.725 |
| tx | 2.700 |
| attenuation | 28.425 |
| | |
+---------------+------------------+
| down | |
| rx | 4.109 |
| tx | -21.250 |
| attenuation | 25.359 |
+---------------+------------------+