Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| internet_connection_watchdog [17.06.2018 21:08] – [serial console to router] Pascal Suter | internet_connection_watchdog [17.06.2018 22:21] (current) – [GSM Link] 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 | ||
| Line 22: | Line 51: | ||
| * Hardware: See above | * Hardware: See above | ||
| * Software: wvdial | * Software: wvdial | ||
| - | * config: ''/ | + | * config: ''/ |
| Init1 = ATZ | Init1 = ATZ | ||
| Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 | Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 | ||
| Init3 = AT+CGDCONT=1," | Init3 = AT+CGDCONT=1," | ||
| Modem Type = Analog Modem | Modem Type = Analog Modem | ||
| - | Baud = 9600 | + | Baud = 960000 |
| New PPPD = yes | New PPPD = yes | ||
| - | Modem = / | + | Modem = %PORT% |
| ISDN = 0 | ISDN = 0 | ||
| Phone = *99# | Phone = *99# | ||