Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting no baudRate at all as some devices don't allow setting one #1831

Open
Thomas12 opened this issue Apr 6, 2019 · 2 comments
Open
Labels
feature-request Feature or Enhancement

Comments

@Thomas12
Copy link

Thomas12 commented Apr 6, 2019

Hi,

I have a device (USB device that behaves like a serial port) that results in ioctl error when setting a baud rate.

Error: Inappropriate ioctl for device setting custom baud rate of 9600.
(Happens with any baudrate).

If I disable the setBaudRate-fcuntion in the .c source, then the device works.
Could you please add a functionality that e.g. setting baudRate to "0", then
the baudRate is never set?

Thank you!

Thomas

@reconbot reconbot added the feature-request Feature or Enhancement label Apr 27, 2019
@reconbot
Copy link
Member

Can you tell me more about these devices? Can I buy one?

@matheuspl
Copy link

I have this issue too. I'm using a usb matricial printer Epson FX-890, the custom path for usb printers is /dev/usb/lpx, where x is a number. After searching a lot, found some informations:

/dev/usb/lpx - printing to USB printer, where x is the printer number. /dev/usb/lp0 usually
/dev/ttyUSBx - printing to printer connected using USB2Serial adapter
/dev/ttySx - printing to direct RS232 attached printer

USB printers protocol is diferent from the others and does not accept baud rate configurations like the others. If you try to change the baud rate directly with this command will get the same error:

stty -F /dev/usb/lp0 19200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature or Enhancement
Development

No branches or pull requests

3 participants