If you ever need to make sure your UART communication parameters have been set properly from Octave
In this case, the UART is utilized for Modbus RS485 and I am checking parity.
Octave device Modbus Parity = Even
root@fx30s:~# stty -a < /dev/ttyHSL0
speed 19200 baud;stty: standard input
line = 0;
intr = ; quit = ; erase = ; kill = ; eof = ;
eol = ; eol2 = ; swtch = ; start = ;
stop = ; susp = ; rprnt = ; werase = ;
lnext = ; flush = ; min = 0; time = 0;
parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
Octave device Modbus Parity = Odd
stty -a < /dev/ttyHSL0
speed 19200 baud;stty: standard input
line = 0;
intr = ; quit = ; erase = ; kill = ; eof = ;
eol = ; eol2 = ; swtch = ; start = ;
stop = ; susp = ; rprnt = ; werase = ;
lnext = ; flush = ; min = 0; time = 0;
parenb parodd cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke
Octave device Modbus Parity = None
root@fx30s:~# stty -a < /dev/ttyHSL0
speed 19200 baud;stty: standard input
line = 0;
intr = ; quit = ; erase = ; kill = ; eof = ;
eol = ; eol2 = ; swtch = ; start = ;
stop = ; susp = ; rprnt = ; werase = ;
lnext = ; flush = ; min = 0; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt -echoctl -echoke