request sending a common system command to smart expansion boards
string spc_request_sys(int $sid, string $cmd)
a response string according to each command
<?php
include_once "/lib/sd_spc.php";
spc_reset();
spc_sync_baud(115200);
spc_scan();
$sid = 1;
echo spc_request_sys($sid, "get did");
echo spc_request_sys($sid, "get uid");
?>