SERIALSET(characteristic as string, value as integer)
Description
Sets a communication characteristic to control serial I/O. Must be done after SerialOpen. Returns an integer error code. See SerialOpen for a list of result codes.
|
|
|
default |
|
Autobaud |
0=off, 1=on |
1 |
|
Buffersize |
Maximum number of characters for serialReceive. |
512 |
|
Baudrate |
Speed of communication in bits.(e.g. 28800) |
SerialOpen |
|
BitsPerChar |
5,6,7,or 8 |
8 |
|
Cmdtimeout |
Timeout in microseconds |
500000 |
|
Ctsauto |
1 for on, 2 for off |
1 |
|
Ctstimeout |
number of seconds before timeout error occurs |
5 |
|
Dcdwait |
Seconds to wait for connection |
70 |
|
Dialtone |
0 for pulse dialing, 1 for tone dialing |
1 |
|
DtrAssert |
0=normal, 1=asserted |
0 |
|
Dtwait |
Seconds to wait for dialtone |
4 |
|
Handshake |
Modem handshaking 0=off, 1=on |
0 |
|
IR |
0=no IR, 1=Receive IR, 2=Send IR |
0 |
|
Parity |
1 for odd parity, 2 for even parity, 3 for no parity.. |
3 |
|
PortID |
Set the serial PortID to a new value. Can be used to control more than one serial connection (if hardware allows it) See SysInfo(3) |
0 |
|
Rtsauto |
1 for on, 2 for off |
1 |
|
Stopbits |
the number of stopbits to use(1, or 2) |
1 |
|
Volume |
a level from 0 to 3 where 0 is off and 3 is maximum |
1 |
|
XonXoff* |
1 for on, 2 for off |
1 |
*some Palm OS docs state that this is not implemented.
Example
err = SerialOpen(32769,9600) ) 'Set up for IR communications
err = SerialSet("IR",1)