This repository is no longer maintained. Issue reports and pull requests will not be attended.
Cellular Data Network Simulator is dedicated WiFi network to monitor network usage and simulate network link conditions for mobile applications. It uses well established technologies: OpenWrt, tc, iptables and CloudShark.
Read more at Polidea Blog
The are a few simple steps to install Cellular Data Network Simulator:
Install cdns:
opkg update
opkg install http://polidea.github.io/Cellular-Data-Network-Simulator/cdns_0.5-3_all.ipk
Installation of Cellular Data Network Simulator replaces default Luci webpage. The Luci can be accessed using: http://ip-address/index-old.html
Configure:
vim /etc/config/cdns
By default there are 5 profiles: Full, HSDPA, Edge, GPRS and Disabled.
In order to support packet capture uploads to Cloudshark, you must edit the cloudshark_api_token parameter. You must create an account at https://www.cloudshark.org and retrieve your API token from the Preferences / API Tokens drop-down menu.
Start the service:
/etc/init.d/cdns enable
/etc/init.d/cdns start
That simply enables and starts the service,
Start the uhttpd daemon:
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start
If you didn’t do it before you have to enable and start the uhttpd daemon.
Start using:
Simply open: http://ip-address/.
/etc/init.d/cdns stop
opkg remove cdns
Download sources:
git clone <repo-path>
Build the package yourself:
make
For more options view help:
make help
BSD 2-Clause License
To fix problems with displaying web page execute from router's commandline:
grep -lir "<html>" /tmp/testing/events*.cfg | xargs rm