You are here

Inappropriate ioctl

1 post / 0 new
Roger Wolff
Offline
Last seen: 2 years 6 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202
Inappropriate ioctl

I am working on my motor controller.... Suddenly I get "inappropriate ioctl for device"  when pointing vesc_tool at my VESC device. I strace-ed vesc tool and: 

open("/dev/ttyACM0", O_RDWR|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 13
fcntl(13, F_SETFD, FD_CLOEXEC)          = 0
ioctl(13, TIOCEXCL)                     = -1 ENOTTY (Inappropriate ioctl for device)

...
ioctl(13, TCGETS, 0x7ffc165712a0)       = -1 ENOTTY (Inappropriate ioctl for device)
 

What could cause this? Kermit the communication program seems to be getting a similar error. Unplugging or powercycling has no effect. 

 

 

edit: Hmm. A reboot of my workstation fixed it.