Counter Values


The command to set internal counter values is count.

"set count (counter) (value)"

Specify a counter name and value to counter and value.

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");

spc_request_dev($sid, "set count rx 0");
spc_request_dev($sid, "set count tx 0");
spc_request_dev($sid, "set count rf 0");
spc_request_dev($sid, "set count tf 0");
spc_request_dev($sid, "set count pe 0");
spc_request_dev($sid, "set count fe 0");
spc_request_dev($sid, "set count oe 0");
spc_request_dev($sid, "set count be 0");
spc_request_dev($sid, "set count rbo 0");
spc_request_dev($sid, "set count tbo 0");
spc_request_dev($sid, "set count rfo 0");
spc_request_dev($sid, "set count tfo 0");
?>