- Using an external library: RXTX
- Features specific to Android and Android widget
sEscape (Function) In french: sEchap Runs different functions that directly affect the bits of serial port, parallel port or infrared port, independently of the communication protocol. These functions are used to manage: - the DTR signal,
- the RTS signal,
- the XOFF and XON characters.
Remarks: - The port must be opened beforehand (sOpen).
   Infrared ports are not supported. This function returns information regarding the server.
// Clears the DTR signal sEscape(PortNum, "CLRDTR")
Syntax
<Result> = sEscape(<Port number> , <Function>)
<Result>: Boolean - True if the function was run,
- False otherwise. If the port was not opened beforehand (by sOpen), sEscape has no effect.
<Port number>: Integer Identifier of the port used: - Port number:
- Number of the serial port: 1, 2, 3, ... 32 for COM1, COM2, COM3, ... COM32.
- Number of the parallel port: -1, -2, -3 or -4 for LPT1, LPT2, LPT3 or LPT4.
- Number of the infrared port: 1, 2, 3, ... 32 for IR1, IR2, IR3, ... IR32.
- Port identifier returned by sOpen (if this function was called with a port name).
  Only this type of parameter is available.
<Function>: Character string Function to run: | | CLRBREAK | Clears the "Break line" signal. | CLRDTR | Clears the DTR signal. | CLRRTS | Clears the RTS signal. | RESETDEV | Re-initializes the device if possible. | SETBREAK | Enables the "Break Line" signal. | SETDTR | Sends the DTR signal. | SETRTS | Sends the RTS signal. | SETXOFF | The transmission behaves like if the XOFF character was received. | SETXON | The transmission behaves like if the XON character was received. |
Business / UI classification: Business Logic
This page is also available for…
|
|
|
|