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.
- Device management and task scheduling
- SOAP-based communication with devices
- TR-069 protocol support
- Lightweight and fast
- Clone the repository:
git clone https://github.com/Nik-Hendricks/Node-CWMP.git
- Navigate to the directory:
cd Node-CWMP
- Install dependencies:
npm install
- Include the library in your project:
const cwmp = require('./cwmp');
- Invoke the CWMPManager class:
const cwmp = new CWMPManager();
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.
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);
});
- Add device authentication
- Implement all CWMP methods
- Add logging support