added sending or receiving SMS in LH and local TX-Lists
This commit is contained in:
parent
1f03e0bf56
commit
44446bc642
3 changed files with 40 additions and 25 deletions
|
@ -129,7 +129,7 @@ function getHeardList($logLines) {
|
|||
continue;
|
||||
}
|
||||
|
||||
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired")) {
|
||||
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired") || strpos($logLine,"ended RF data") || strpos($logLine,"ended network")) {
|
||||
$lineTokens = explode(", ",$logLine);
|
||||
|
||||
$duration = strtok($lineTokens[2], " ");
|
||||
|
@ -144,27 +144,38 @@ function getHeardList($logLines) {
|
|||
$ber = substr($lineTokens[4], 5);
|
||||
}
|
||||
|
||||
switch (substr($logLine, 27, strpos($logLine,",") - 27)) {
|
||||
case "D-Star":
|
||||
$dstarduration = $duration;
|
||||
$dstarloss = $loss;
|
||||
$dstarber = $ber;
|
||||
break;
|
||||
case "DMR Slot 1":
|
||||
$ts1duration = $duration;
|
||||
$ts1loss = $loss;
|
||||
$ts1ber = $ber;
|
||||
break;
|
||||
case "DMR Slot 2":
|
||||
$ts2duration = $duration;
|
||||
$ts2loss = $loss;
|
||||
$ts2ber = $ber;
|
||||
break;
|
||||
case "YSF":
|
||||
$ysfduration = $duration;
|
||||
$ysfloss = $loss;
|
||||
$ysfber = $ber;
|
||||
break;
|
||||
if (strpos($logLine,"ended RF data") || strpos($logLine,"ended network")) {
|
||||
switch (substr($logLine, 27, strpos($logLine,",") - 27)) {
|
||||
case "DMR Slot 1":
|
||||
$ts1duration = "SMS";
|
||||
break;
|
||||
case "DMR Slot 2":
|
||||
$ts2duration = "SMS";
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (substr($logLine, 27, strpos($logLine,",") - 27)) {
|
||||
case "D-Star":
|
||||
$dstarduration = $duration;
|
||||
$dstarloss = $loss;
|
||||
$dstarber = $ber;
|
||||
break;
|
||||
case "DMR Slot 1":
|
||||
$ts1duration = $duration;
|
||||
$ts1loss = $loss;
|
||||
$ts1ber = $ber;
|
||||
break;
|
||||
case "DMR Slot 2":
|
||||
$ts2duration = $duration;
|
||||
$ts2loss = $loss;
|
||||
$ts2ber = $ber;
|
||||
break;
|
||||
case "YSF":
|
||||
$ysfduration = $duration;
|
||||
$ysfloss = $loss;
|
||||
$ysfber = $ber;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,8 +27,10 @@ for ($i = 0; ($i < LHLINES) AND ($i < count($lastHeard)); $i++) {
|
|||
echo"<td>$listElem[4]</td>";
|
||||
echo"<td>$listElem[5]</td>";
|
||||
if ($listElem[6] == null) {
|
||||
echo'<td colspan="3">transmitting</td>';
|
||||
} else {
|
||||
echo'<td colspan="3">transmitting</td>';
|
||||
} else if ($listElem[6] == "SMS") {
|
||||
echo'<td colspan="3">sending or receiving SMS</td>';
|
||||
} else {
|
||||
echo"<td>$listElem[6]</td>";
|
||||
echo"<td>$listElem[7]</td>";
|
||||
echo"<td>$listElem[8]</td>";
|
||||
|
|
|
@ -33,7 +33,9 @@ for ($i = 0; $i < count($localTXList); $i++) {
|
|||
echo"<td>$listElem[4]</td>";
|
||||
echo"<td>$listElem[5]</td>";
|
||||
if ($listElem[6] == null) {
|
||||
echo'<td colspan="3">transmitting</td>';
|
||||
echo'<td colspan="3">transmitting</td>';
|
||||
} else if ($listElem[6] == "SMS") {
|
||||
echo'<td colspan="3">sending or receiving SMS</td>';
|
||||
} else {
|
||||
echo"<td>$listElem[6]</td>";
|
||||
echo"<td>$listElem[7]</td>";
|
||||
|
|
Loading…
Reference in a new issue