This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[16:16:39:519] ping.protocol.pingsensor[Debug]: Handling Message: 2300 | |
[16:16:39:519] ping.protocol.ping360[Debug]: Handling Message: 2300 | |
[16:16:39:644] ping.protocol.pingsensor[Debug]: Handling Message: 2300 | |
[16:16:39:644] ping.protocol.ping360[Debug]: Handling Message: 2300 | |
[16:16:39:670] ping.protocol.pingsensor[Debug]: Handling Message: 2300 | |
[16:16:39:670] ping.protocol.ping360[Debug]: Handling Message: 2300 | |
[16:16:39:707] ping.protocol.pingsensor[Debug]: Handling Message: 2300 | |
[16:16:39:707] ping.protocol.ping360[Debug]: Handling Message: 2300 | |
[16:16:39:810] ping.protocol.pingsensor[Debug]: Handling Message: 2300 | |
[16:16:39:810] ping.protocol.ping360[Debug]: Handling Message: 2300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python -u | |
"""Scan serial ports for ping devices | |
Symlinks to detected devices are created under /dev/serial/ping/ | |
This script needs root permission to create the symlinks | |
""" | |
from __future__ import print_function | |
import subprocess | |
from brping import PingDevice | |
from brping.definitions import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set defaults if not provided by environment | |
CHECK_DELAY=${CHECK_DELAY:-5} | |
CHECK_IP=${CHECK_IP:-8.8.8.8} | |
PRIMARY_IF=${PRIMARY_IF:-eth0} | |
PRIMARY_GW=${PRIMARY_GW:-10.0.0.1} | |
BACKUP_IF=${BACKUP_IF:-eth0} | |
BACKUP_GW=${BACKUP_GW:-10.0.0.6} |
OlderNewer