73 portset, Portset, Motload commands – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual
Page 150
MOTLoad Commands
MOTLoad Firmware Package User’s Manual (6806800C24D)
150
3.1.73 portSet
Name
portSet—sets the communication mode(s) for a serial port.
Synopsis
portSet [-b] [-d] [-p] [-s] [-w]
Parameters
-b Pd: Baud Rate (Default = 9600)
-d Ps: Serial-Port Device Name (Default = /dev/com2)
-p Ps: Parity (e/o) (Default = No)
-s Pd: Stop Bits (1/2) (Default = 1)
-w Pd: Word Size (7/8) (Default = 8)
Example
The following example indicates a typical display when using the portSet commands.
MOTLoad> portSet -b14400 -d/dev/com2
Error Messages
portSet(): open(<device>) failed, errno <value>
Unable to open specified port.
portSet(): ioctl(101) failed, errno = <value>
Unable to get port's current mode.
portSet(): ioctl(100) failed, errno = <value>
Unable to set port's configuration.
portSet(): ioctl(102) failed, errno = <value>
Unable to set port's baud rate.