Package the new .ipk or .deb as a firmware upgrade, or use the Download RPC with FileType = 3 Vendor Configuration File and run a script.
| Requirement | Details | |-------------|---------| | | Linux (Debian/Ubuntu, OpenWrt, Yocto, Buildroot) | | Libraries | libcurl (with SSL support), libjson-c, libmicrohttpd, libubox (optional), libuci (optional) | | Network | Internet access for ACS communication | | Permissions | Root or sudo access to install packages and modify system files |
# Force an Inform immediately easycwmp inform easycwmp download Reboot the device (if allowed by ACS) easycwmp reboot Factory reset easycwmp factoryreset Show current parameters easycwmp get parameter name Device.DeviceInfo.SerialNumber 6. Testing with GenieACS (Local ACS) To fully test EasyCWMp, you need an ACS. Let’s set up GenieACS quickly. Step 1: Install GenieACS # Using Docker (easiest) docker run -d --name genieacs -p 7547:7547 -p 3000:3000 genieacs/genieacs Step 2: Access GenieACS UI Open http://localhost:3000 – default credentials: admin / admin Step 3: Configure EasyCWMp to Use GenieACS Edit /etc/config/easycwmp :
config local 'local' option interface 'eth0' # network interface option port '7548' # for connection requests uuidgen > /etc/easycwmp/serial Configure ACS Connection Request Handling EasyCWMp must listen for incoming requests from the ACS. This is typically done via iptables or by binding to a specific port.
easycwmpd is the persistent daemon that handles connection requests and periodic informs. The easycwmp script is a CLI tool that sends RPCs via the daemon.
Easycwmp: Tutorial
Package the new .ipk or .deb as a firmware upgrade, or use the Download RPC with FileType = 3 Vendor Configuration File and run a script.
| Requirement | Details | |-------------|---------| | | Linux (Debian/Ubuntu, OpenWrt, Yocto, Buildroot) | | Libraries | libcurl (with SSL support), libjson-c, libmicrohttpd, libubox (optional), libuci (optional) | | Network | Internet access for ACS communication | | Permissions | Root or sudo access to install packages and modify system files | easycwmp tutorial
# Force an Inform immediately easycwmp inform easycwmp download Reboot the device (if allowed by ACS) easycwmp reboot Factory reset easycwmp factoryreset Show current parameters easycwmp get parameter name Device.DeviceInfo.SerialNumber 6. Testing with GenieACS (Local ACS) To fully test EasyCWMp, you need an ACS. Let’s set up GenieACS quickly. Step 1: Install GenieACS # Using Docker (easiest) docker run -d --name genieacs -p 7547:7547 -p 3000:3000 genieacs/genieacs Step 2: Access GenieACS UI Open http://localhost:3000 – default credentials: admin / admin Step 3: Configure EasyCWMp to Use GenieACS Edit /etc/config/easycwmp : Package the new
config local 'local' option interface 'eth0' # network interface option port '7548' # for connection requests uuidgen > /etc/easycwmp/serial Configure ACS Connection Request Handling EasyCWMp must listen for incoming requests from the ACS. This is typically done via iptables or by binding to a specific port. Let’s set up GenieACS quickly
easycwmpd is the persistent daemon that handles connection requests and periodic informs. The easycwmp script is a CLI tool that sends RPCs via the daemon.