Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4580

stty command does not change the baud rate

$
0
0

I am trying to use a Honeywell 1911i Barcode Scanner through a serial port on Ubuntu 22.04 machine.

I am having an issue where attempting to set the baud rate of the serial port via stty command does not work.

I perform:

sudo stty -F /dev/ttyS6 115200

Then the output of sudo stty /dev/ttyS6 gives:

speed 9600 baud; line = 0;min = 1; time = 0;-brkint -icrnl -imaxbel-opost -onlcr-isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

I cannot get the baud rate to change and stay changed.

The scanner is set to 115200, as well as in minicom. The code that processes the results of the scanner also opens the port with 115200.

EDIT: Upon further testing, it appears to be my software launching that is resetting the baud rate of the serial port to 9600, though I am unsure how that is possible so any insight is still appreciated.


Viewing all articles
Browse latest Browse all 4580

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>