确认内部计数值


确认内部计数值的命令是 count

"get count (counter)"

counter上输入要确认的内部计数值名称。

内部计数 说明
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");
?>