internet_connection_watchdog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 Suterinternet_connection_watchdog [17.06.2018 20:53] Pascal Suter
Line 9: Line 9:
   * on the tp-link stick the last serial device seems to be the one that can be used for sms (''gammu identify'' only gets information from that device). <code>gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1</code> to get the device name for the config   * on the tp-link stick the last serial device seems to be the one that can be used for sms (''gammu identify'' only gets information from that device). <code>gammu-detect | grep -B1 TP-LINK | grep ttyUSB | tail -n 1</code> to get the device name for the config
   * installation: <code>apt install gammu gammu-smsd</code>   * installation: <code>apt install gammu gammu-smsd</code>
-  * +  * <code bash process-sms.sh>#!/bin/bash 
 +for i in `seq $SMS_MESSAGES` ; do 
 +    $numvar="SMS_${i}_NUMBER" 
 +    $textvar="SMS_${i}_TEXT"; 
 +    echo "${!numvar}:${!textvar}" >> /tmp/messages 
 +    if [ "${!textvar}" == "connect ]; then 
 +      echo "connect!" >> /tmp/messages 
 +    fi 
 +done 
 +</code>
 ===== GSM Link ===== ===== GSM Link =====
   * Hardware: See above   * Hardware: See above
   * Software: wvdial    * Software: wvdial 
-  * +  * config: ''/etc/wvdial.conf'' <code>[Dialer Defaults] 
 +Init1 = ATZ 
 +Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 
 +Init3 = AT+CGDCONT=1,"IP","internet" 
 +Modem Type = Analog Modem 
 +Baud = 9600 
 +New PPPD = yes 
 +Modem = /dev/ttyUSB5 
 +ISDN = 0 
 +Phone = *99# 
 +Password = { } 
 +Username = { } 
 +</code>
 ===== Relay Card ===== ===== Relay Card =====
   * Hardware: Conrad electronics, part number 967720 (Relaiskarte 8Fach Seriell)   * Hardware: Conrad electronics, part number 967720 (Relaiskarte 8Fach Seriell)
  • internet_connection_watchdog.txt
  • Last modified: 17.06.2018 22:21
  • by Pascal Suter