sherlockwisdom / Afkanerd-DekuDaemon

using mmcli as an SMS execution point. Modems listen for request and execute them one after the other

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deku Daemon


Dependencies

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\

ubuntu

sudo apt install doxygen

manjaro

sudo pacman -S doxygen

  • ModemManager - comes installed on most Linux systems

For Testing we use the CppUTest; https://cpputest.github.io/manual.html

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#:

About

using mmcli as an SMS execution point. Modems listen for request and execute them one after the other


Languages

Language:C++ 81.3%Language:Python 10.7%Language:Shell 4.9%Language:Makefile 2.9%Language:CMake 0.2%