Skip to content

Nik-Hendricks/Node-CWMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-CWMP

Node-CWMP is a lightweight Node.js library for building and managing a CPE WAN Management Protocol (CWMP) server. It allows you to interact with devices, handle CWMP messages, and manage parameters through SOAP requests. This library is useful for TR-069 management server implementation.

Features

  • Device management and task scheduling
  • SOAP-based communication with devices
  • TR-069 protocol support
  • Lightweight and fast

Installation

  1. Clone the repository:
    git clone https://github.com/Nik-Hendricks/Node-CWMP.git
  2. Navigate to the directory:
    cd Node-CWMP
  3. Install dependencies:
    npm install
  4. Include the library in your project:
    const cwmp = require('./cwmp');
  5. Invoke the CWMPManager class:
    const cwmp = new CWMPManager();

Usage

Starting the CWMP Server

The CWMP server starts automatically when you run the library. It listens on port 7547 by default and is ready to accept requests from devices.

Example Usage

To add a task for a device:

cwmp.add_task('DEVICE_ID', 'get_param', { param_name: 'Device.DeviceInfo.SerialNumber' }, (param) => {
    console.log('Received Parameter:', param);
});

Todo

  • Add device authentication
  • Implement all CWMP methods
  • Add logging support

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published