Sending Break Signal


The command to transmit the break signal is break.

"set break (time)"

Specify break time to time.

The break time can be set in bits or microseconds. When setting in bit units, you only need to enter the value, but when setting in microseconds, you must put "us" after the value. The available setting value is from 10 bits to 60 seconds.

※ Note: TxDE control should be set to N when you send a break singal.

※ Note: The actual break time may be longer than the specified time when system is busy.

<?php
include "/lib/sd_spc.php";

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

spc_request_dev($sid, "set uart 115200N81N");  // TxDE control > N
spc_request_dev($sid, "set break 10");         // sending break: 10bits duration
spc_request_dev($sid, "set uart 115200N81T");  // TxDE control > T

sleep(1);

spc_request_dev($sid, "set uart 115200N81N");  // TxDE control > N
spc_request_dev($sid, "set break 1000000us");  // sending break: 1 second
spc_request_dev($sid, "set uart 115200N81T");  // TxDE control > T
?>