Counter Values


The command to get internal counter values is count.

"get count (counter)"

Specify a name of counter to counter.

Counter Description
rx received byte
tx transmitted byte
rf received frame
tf transmitted byte
pe perity error
fe framing error
oe overrun error
be break error
rbo receive buffer overflow
tbo transmit buffer overflow
rfo received frame pointer overflow
tfo transmitted frame pointer overflow
<?php
include "/lib/sd_spc.php";

$sid = 14;
spc_reset();
spc_sync_baud(115200);

spc_request_dev($sid, "set uart 115200N81");

echo spc_request_dev($sid, "get count rx"), "\r\n";
echo spc_request_dev($sid, "get count tx"), "\r\n";
echo spc_request_dev($sid, "get count rf"), "\r\n";
echo spc_request_dev($sid, "get count tf"), "\r\n";
echo spc_request_dev($sid, "get count pe"), "\r\n";
echo spc_request_dev($sid, "get count fe"), "\r\n";
echo spc_request_dev($sid, "get count oe"), "\r\n";
echo spc_request_dev($sid, "get count be"), "\r\n";
echo spc_request_dev($sid, "get count rbo"), "\r\n";
echo spc_request_dev($sid, "get count tbo"), "\r\n";
echo spc_request_dev($sid, "get count rfo"), "\r\n";
echo spc_request_dev($sid, "get count tfo");
?>