Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
internet_connection_watchdog [17.06.2018 21:08] – [serial console to router] Pascal Suter | internet_connection_watchdog [17.06.2018 22:20] – [SMS] Pascal Suter | ||
---|---|---|---|
Line 3: | Line 3: | ||
so far, this is just a collection of snippets of information and links, i'll write it up into a nice article one day, but not today ;) | so far, this is just a collection of snippets of information and links, i'll write it up into a nice article one day, but not today ;) | ||
+ | |||
+ | ===== software installation ===== | ||
+ | apt update && apt install wvdial gammu gammu-smsd picocom | ||
===== SMS ===== | ===== SMS ===== | ||
Line 8: | Line 11: | ||
* Hardware: TP-Link MA260 | * Hardware: TP-Link MA260 | ||
* on the tp-link stick the last serial device seems to be the one that can be used for sms ('' | * on the tp-link stick the last serial device seems to be the one that can be used for sms ('' | ||
+ | * ''/ | ||
+ | |||
+ | # Gammu library configuration, | ||
+ | [gammu] | ||
+ | port = %PORT% | ||
+ | connection = at | ||
+ | #logformat = textall | ||
+ | |||
+ | # SMSD configuration, | ||
+ | [smsd] | ||
+ | service = null | ||
+ | logfile = syslog | ||
+ | # Increase for debugging information | ||
+ | debuglevel = 0 | ||
+ | RunOnReceive = / | ||
+ | </ | ||
+ | * ''/ | ||
+ | device = %PORT% | ||
+ | connection = at | ||
+ | </ | ||
+ | * ''/ | ||
+ | #!/bin/bash | ||
+ | port=$(gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1 | awk -F = ' | ||
+ | sed -e " | ||
+ | sed -e " | ||
+ | </ | ||
* installation: | * installation: | ||
* <code bash process-sms.sh># | * <code bash process-sms.sh># | ||
for i in `seq $SMS_MESSAGES` ; do | for i in `seq $SMS_MESSAGES` ; do | ||
- | | + | numvar=" |
- | | + | textvar=" |
echo " | echo " | ||
- | if [ " | + | if [ " |
echo " | echo " | ||
fi | fi |