|
@@ -38,7 +38,7 @@ VAR
|
|
PROCEDURE ModemReceive(context : Commands.Context; modemMode: LONGINT); (** [[filename] portNbr BitsPerSecond DataBits Parity StopBits] ~ *)
|
|
PROCEDURE ModemReceive(context : Commands.Context; modemMode: LONGINT); (** [[filename] portNbr BitsPerSecond DataBits Parity StopBits] ~ *)
|
|
VAR
|
|
VAR
|
|
name : Files.FileName; file : Files.File;
|
|
name : Files.FileName; file : Files.File;
|
|
- port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT;
|
|
|
|
|
|
+ port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT; params: SET;
|
|
isOpen0 : BOOLEAN;
|
|
isOpen0 : BOOLEAN;
|
|
bps0, data0, parity0, stop0 : LONGINT;
|
|
bps0, data0, parity0, stop0 : LONGINT;
|
|
recv : XYModem.Receiver; awaitF : BOOLEAN;
|
|
recv : XYModem.Receiver; awaitF : BOOLEAN;
|
|
@@ -52,7 +52,7 @@ BEGIN
|
|
RETURN;
|
|
RETURN;
|
|
END;
|
|
END;
|
|
|
|
|
|
- Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, res);
|
|
|
|
|
|
+ Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, params, res);
|
|
IF res # 0 THEN
|
|
IF res # 0 THEN
|
|
context.result := 2;
|
|
context.result := 2;
|
|
context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
|
|
context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
|
|
@@ -235,11 +235,11 @@ END GetSerialPortParameters;*)
|
|
(** Open a shell listening on the specified <portNbr> *)
|
|
(** Open a shell listening on the specified <portNbr> *)
|
|
PROCEDURE Open*(context : Commands.Context); (** [portNbr BitsPerSecond DataBits Parity StopBits Prompt] ~ *)
|
|
PROCEDURE Open*(context : Commands.Context); (** [portNbr BitsPerSecond DataBits Parity StopBits Prompt] ~ *)
|
|
VAR
|
|
VAR
|
|
- port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT;
|
|
|
|
|
|
+ port : Serials.Port; portNbr, bps, data, parity, stop, res : LONGINT; params: SET;
|
|
prompt: ARRAY 32 OF CHAR;
|
|
prompt: ARRAY 32 OF CHAR;
|
|
w : Streams.Writer; r : Streams.Reader;
|
|
w : Streams.Writer; r : Streams.Reader;
|
|
BEGIN {EXCLUSIVE}
|
|
BEGIN {EXCLUSIVE}
|
|
- Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, res);
|
|
|
|
|
|
+ Serials.GetPortParameters(context.arg, portNbr, bps, data, parity, stop, params, res);
|
|
IF res # 0 THEN
|
|
IF res # 0 THEN
|
|
context.result := 1;
|
|
context.result := 1;
|
|
context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
|
|
context.error.String("Invalid port settings, res="); context.error.Int(res,0); context.error.Ln;
|