Git Product home page Git Product logo

ztecfg's Introduction

Language: 🇺🇸 🇨🇳

ztecfg

A ZTE Optical Modem Configuration Tool

GitHub Actions GitHub Actions License: GPL v3

Usage

usage: ztecfg [-h] [-u cfg_file | -p cfg_file xml_file] [-o file] [-f] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -u cfg_file, --unpack cfg_file
                        unpack ZTE config file
  -p cfg_file xml_file, --pack cfg_file xml_file
                        pack ZTE config file
  -o file, --output file
                        specific output filename
  -f, --force           force to overwrite output file
  -v, --version         show program's version number and exit

Unpack

Unpack a ZTE cfg file:

$ ./ztecfg -u ctce8_F663N.cfg
Write XML output to file "ctce8_F663N.xml"

Unpack a ZTE cfg file to specific file out.xml:

$ ./ztecfg -u ctce8_F663N.cfg -o out.xml
Write XML output to file "out.xml"

Pack

Pack to ZTE cfg file with original cfg file and xml file:

$ ./ztecfg -p ctce8_F663N.cfg new.xml
Write CFG output to file "new.xml.cfg"

Pack ZTE cfg with a specific output file named out.cfg:

$ ./ztecfg -p ctce8_F663N.cfg new.xml -o out.cfg
Write CFG output to file "out.cfg"

Warning

The unpack process will check the CRC checksum of both the file header and the block header to make sure the cfg file is valid. Also the pack process will write back the checksum to the cfg file.

If the cfg file cannot be unpacked, it might indicate that the cfg file is incompatible with this tool. Under such circumstances, please DO NOT try to pack it back, cause it might brick your optical modem.

Always backup your configurations before you do any modifications to your modem.

This tools had been tested only on ZTE ZXHN F663N, but it should be working on any ZTE ZXHN series optical modems with a cfg backup file.

Use at your own risk, the author will not take any responsibilities of the damage to your devices.

Special Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.