Skip to content

Ubuntu 20.04.1 LTS 64bit getting: Error setting RS-232 mode: Inappropriate ioctl for device #33

@oldunixguy

Description

@oldunixguy

I compiled the src with gcc -o linux-serial-test linux-serial-test.c
I have a null modem cable from ttyS0 to ttyS4. Both tty are real rs-232 serial ports.

In shell1 I ran:
linux-serial-test -s -e -p /dev/ttyS4 -t -c -l 250 -b 57600
In shell2 I ran:
linux-serial-test -s -e -p /dev/ttyS0 -r -c -b 57600

In both instances I get:
Error setting RS-232 mode: Inappropriate ioctl for device

and then both instances appear to operate normally.
The error output is paltry. Any suggestions on what to add to the output to narrow down for you what is wrong?

thanks
oldunixguy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions