Deku Daemon
Dependencies
- Make - https://www.tutorialspoint.com/unix_commands/make.htm
- g++ 4.8 or later - https://courses.cs.washington.edu/courses/cse373/99au/unix/g++.html
- Most development was done with mysql-dev 5.7 in ubuntu, should change that to 8.0
ubuntu
sudo apt install build-essential
manjaro
sudo pacman -S base-devel
- MySQL server
ubuntu
sudo apt install mysql-server
sudo apt install libmysqld-dev
manjaro
sudo pacman -S mysql
\
- Doxygen (optional) - https://riptutorial.com/doxygen
ubuntu
sudo apt install doxygen
manjaro
sudo pacman -S doxygen
- ModemManager - comes installed on most Linux systems
https://cpputest.github.io/manual.html
For Testing we use the CppUTest;ubuntu
sudo apt install cpputest
manjaro
sudo pacman -S cpputest
VARIABLES OF CONFIGURATION FILE (.ENV)
- DIR_ISP=""
- DIR_REQUEST_FILE=""
- DIR_SUCCESS=""
- DIR_SCRIPTS="
- DIR_ERROR=""
- STD_NAME_REQUEST_FILE=""
- STD_NAME_WHITELIST_FILE=""
- MYSQL_SERVER=""
- MYSQL_USER=""
- MYSQL_PASSWORD=""
- ISP_EXCHANGE=ISP_NAME{OTHER_ISP_NAMES,,}:ISP_NAME_2{OTHER_ISP_NAMES,,}
How to build and run
make -C src/
./bins/start --c <path to personal configuration file> --mode TEST(default)|PRODUCTION
Start arguments
--c [configuration file]
--mode PRODUCTION|TEST
changes what the console outputs
--show_isp [number]
--run_ussd [code]
--run_ussd_script <path to file>
--exhaust_count [number]
warning: do not set less than 3 if using MTN or say, could be very dangerous if automated
--show_isp [number]
--generate_request [number]
--st [number]
sleep time for modems, before iterating to check again
--f [filename]
--cleanse
--cleanse-only
--stat-only
--sms-only
--ussd-only --script=key=value e.g --script=modem=0,command=#99#,retry_count=3
--sms
--ls-locked-files-only
--release-locked-files-only
--release-locked-files
--remote-control
must be used with --sms switch
Remote-control commands
Default input schema: :command
- Default Prefix: #dri#:
- Custom commands: #tt#: