Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
internet_connection_watchdog [17.06.2018 20:29] – [GSM Link] Pascal Suter | internet_connection_watchdog [17.06.2018 21:58] – [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># |
+ | for i in `seq $SMS_MESSAGES` ; do | ||
+ | $numvar=" | ||
+ | $textvar=" | ||
+ | echo " | ||
+ | if [ " | ||
+ | echo " | ||
+ | fi | ||
+ | done | ||
+ | </ | ||
===== GSM Link ===== | ===== GSM Link ===== | ||
* Hardware: See above | * Hardware: See above | ||
* Software: wvdial | * Software: wvdial | ||
- | * | + | * config: ''/ |
+ | Init1 = ATZ | ||
+ | Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 | ||
+ | Init3 = AT+CGDCONT=1," | ||
+ | Modem Type = Analog Modem | ||
+ | Baud = 9600 | ||
+ | New PPPD = yes | ||
+ | Modem = / | ||
+ | ISDN = 0 | ||
+ | Phone = *99# | ||
+ | Password = { } | ||
+ | Username = { } | ||
+ | </ | ||
===== Relay Card ===== | ===== Relay Card ===== | ||
* Hardware: Conrad electronics, | * Hardware: Conrad electronics, | ||
Line 21: | Line 71: | ||
* via dual prolific basead usb to serial converter, one link goes to the relay card, the other to the serial terminal of the pfsense router. | * via dual prolific basead usb to serial converter, one link goes to the relay card, the other to the serial terminal of the pfsense router. | ||
* usb link is extended down to the basement via cat7 link, I simply cut a usb extension cord into two and attached RJ45 plugs to both ends with identical pin layout. works like a charm :) | * usb link is extended down to the basement via cat7 link, I simply cut a usb extension cord into two and attached RJ45 plugs to both ends with identical pin layout. works like a charm :) | ||
+ | * software: '' | ||