Coder Social home page Coder Social logo

pyacs's Introduction

1 Introduction

pyacs is a tr069 acs written by python. The following features have been finished.

1.1 ACS RPC Methods

  • GetRPCMethods
  • Inform

2 Installation

Note - make sure you have installed python3(3.10 is recommended) in your platform.

pip install --user pipenv
pipenv install

3 Configuration

3.1 config/flask.cfg

Please change the SECRET_KEY by generating your own. The SECRET_KEY is used to sign cookies.

3.2 config/tr098.ini

  • The main configuration file for TR-098. The Common section is used as default values which can be overriden by a specific CPE configuration.

  • To override values for a specific CPE create a section with the serialnumber including leading zeros as shown for 0000123456.

  • After changing values in the tr098.ini the CPE cell can be either rebooted or wait until the CPE is informing us again (see periodic inform / tr069).

4 Running

pipenv run python pyacs.py

Note - for ACS, "ManagementServer.URL" must be set to "http://[ip]:80/acs" in CPE.
Note - for web server, you can visit "http://localhost/" to initiate "Connection Request".

5 Troubleshooting

5.1 CPE stops reacting on ACS data

Ensure the xml files contain an extra newline (ascii 0xa) on the end of the request.

6 Bugs / Limitations

Note - please see Issues for known bugs

It doesn't use any external database (mysql) or cache system (redis) to reduce the amount of external dependencies and simplify the setup.

pyacs's People

Contributors

lynxis avatar ztpaul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

baiyang0717

pyacs's Issues

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.