Command Line Interface
Use SPRCmd.exe console program to map serial ports via command line interface.
Command line SPRCmd.exe file is created during the program install. You can find it within Serial Port Redirector program folder.
Command-line syntax cheat sheet
Notation | Example | Description |
---|---|---|
Text without brackets | command | Items which must be typed as shown. |
Text in square brackets | [optional] | Optional parameter. |
Text in angle brackets | <value> | Placeholder for user-provided values. |
Text in curly braces | { required =0|=1 } | Group of required choices. At least one option must be included. |
Pipe | option_1|option_2 | Divider between alternative options. Only one option can be selected. |
C:\Program Files\FabulaTech\Serial Port Redirector\SPRCmd.exe Serial Port Redirector console utility Copyright © 2000-2024 FabulaTech Usage: SPRCmd.exe command [option] Syntax: list List all serial ports. list [physical]|[virtual] List physical|virtual serial ports. set raw|telnet-bin|telnet-ascii <COM port> <host> <TCP port> Add virtual COM port with specified number and redirect data to specified host and TCP port: raw - Raw data transfer protocol; telnet-bin - Telnet Binary data transfer protocol; telnet-ascii - ASCII data transfer protocol. setserver raw|telnet-bin|telnet-ascii <COM port> <TCP port> [physical] Add server serial port with specified number on specified TCP port: raw - Raw data transfer protocol; telnet-bin - Telnet Binary data transfer protocol; telnet-ascii - ASCII data transfer protocol. physical - if specified COM port is hardware. bitrateemul <COM port> on|off Enable/disable bitrate emulation option. fixedbaud <COM port> on [value] Set fixed baudrate: value: numerical; fixedbaud <COM port> off Disable fixed baudrate. fixedflow <COM port> on [none|hardware|xonxoff] Set fixed flow control method. fixedflow <COM port> off Disable fixed flow control. fixedline <COM port> on [d:<value>] [s:<value>] [p:<value>] Set fixed line control parameters: d:5|6|7|8 - Data bits; s:1|1.5|2 - Stop bits; p:none|odd|even|mark|space - Parity. fixedline <COM port> off Disable fixed line control parameters. reconnect <COM port> enable:on interval:<value> cache:<on|off> Apply automatic reconnect settings for serial port identified by number: COM port - 1..255, 0 - all ports; interval: 1-99999 - interval (in seconds); cache: on|off - enable/disable cache. reconnect <COM port> enable:off Disable automatic reconnect. keepalive <COM port> enable:on interval:<value> Apply keep alive settings for serial port identified by number: COM port: 1..255, 0 - all ports; interval: 1-99999 - interval (in seconds). keepalive <COM port> off Disable keep alive for specified serial port. accumulate <COM port> time:<on|off> <value> size:<on|off> <value> Apply data buffering for specified serial port: COM port: 1..255, 0 - all ports; time: on|off <value> - set buffer length in milliseconds (0-99999); size: on|off <value> - set buffer length in bytes (0-99999). remove <COM port> Remove specified virtual serial port. removeall Remove all virtual ports. enable Enable all virtual ports. disable Disable all virtual ports. help|/? Show this help.
Command line usage examples:
Create virtual COM5 redirected to remote IP address 192.168.10.1, TCP port 2000. RFC2217 protocol is used for data transfer.
SPRCmd.exe set telnet-bin 5 192.168.10.1 2000
Remove virtual COM5.
SPRCmd.exe remove 5
Configure fixed settings for COM3 (Stop bits = 1, Parity = None).
SPRCmd.exe fixedline 3 on s:1 p:none