sending_20a_20serial_20break
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
sending_20a_20serial_20break [2018/03/31 13:19] – external edit 127.0.0.1 | sending_20a_20serial_20break [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
//by Richard Russell, July 2007//\\ \\ Occasionally you may wish to send a **break** condition on a serial port output line. For example this may be needed to 'wake up' a remote device such as a modem. You can easily do that using the following code:\\ \\ | //by Richard Russell, July 2007//\\ \\ Occasionally you may wish to send a **break** condition on a serial port output line. For example this may be needed to 'wake up' a remote device such as a modem. You can easily do that using the following code:\\ \\ | ||
+ | <code bb4w> | ||
SYS " | SYS " | ||
WAIT 50 | WAIT 50 | ||
SYS " | SYS " | ||
+ | </ | ||
Here **com1%** is the value returned from [[http:// | Here **com1%** is the value returned from [[http:// | ||
+ | <code bb4w> | ||
com1% = OPENUP(" | com1% = OPENUP(" | ||
IF com1% = 0 ERROR 100, " | IF com1% = 0 ERROR 100, " | ||
Line 14: | Line 17: | ||
CLOSE #com1% | CLOSE #com1% | ||
+ | </ |
sending_20a_20serial_20break.1522502380.txt.gz · Last modified: 2024/01/05 00:16 (external edit)