PropPug on Linux - which /dev/ttyUSBn ?
prof_braino
Posts: 4,313
I'm trying to talk to a propplug from a linux Mint 17-64 MATE virtual machine.
The base machine is also Mint 17-64 MATE.
I'm using minicom from a terminal window.
The base machine works fine, it see the proplug as /de/ttyUSB8
The virtual machine does not make the plopplug LEDs flash, is also thinks the its on /de/ttyUSB8
On the base machine (that works) my user is NOT in dialoup group.
On the vitrtual machine (doesn't work) my user IS member of dialout group.
So I'm confused and troubleshooting.
How can I check what /dev/ttyUSB is assingned for the prop plug on the virtual machine?
The base machine is also Mint 17-64 MATE.
I'm using minicom from a terminal window.
The base machine works fine, it see the proplug as /de/ttyUSB8
The virtual machine does not make the plopplug LEDs flash, is also thinks the its on /de/ttyUSB8
On the base machine (that works) my user is NOT in dialoup group.
On the vitrtual machine (doesn't work) my user IS member of dialout group.
So I'm confused and troubleshooting.
How can I check what /dev/ttyUSB is assingned for the prop plug on the virtual machine?
Comments
What virtualization software are you using? Virtual Box ?
It's long time since I played with this but I seem to recall you have to configure the use of USB for the virtual instance on the host and install guest additions into the virtualized OS.
As described here: http://www.dedoimedo.com/computers/virtualbox-usb.html
The commands "lsusb" and "dmesg" are useful here.
That would be on windows, but I no longer have use windows. I have not noticed any similar messages or alerts on linux.
lsusb lists the devices, but not the /dev/ttyusbn
lsusb -v lists the devices and tons of other stuff, but not the /dev/ttyusbn
dmesg might be the one I need, I'll give than alook straight away
Perhaps I should have phrased that better. When I said "...see the device /dev/ttyUSBx come and go. ..." what I had in mind was that you would run "ls /dev/ttyUSB*". Then pug in the Prop Plug. Then do the ls again. And then you should see it there.
Or you can use dmesg or lsusb command whist inserting and removing the Prop Plug.
I don't usually expect any alerts or such to pop up when I add and remove devices in Linux. Although on my KDE desktop I so get such pop ups for USB sticks and other external storage devices.
I remember that minicon used to see ttyUSB0 on previous machines, did something change in the was debian eneumerated USB devices?
Anyway, it works now!
I tried ls /dev/ttyUSB* but it says no such file. in the /dev directory, there are many tty0-ttyS31, but no ttyUSB anything. This always confuses me. I had similar confusion getting bluetooth to work, I could never find the device rfcomm
I thought linux was great because what ever got plugged in would just come up on ttyUSB0. This is the first time I've had more than 1USB serial port at the same time, and the first time it showed up as ttyUSB8
Life was good.
Now a days everything is plug'n'play. Not just these ports but storage devices, network interfaces and so on. To go along with that we have run-time loadable kernel modules that can be loaded and unloaded as devices appear and disappear.
So, for example, your Prop Plug that has always come up as /dev/ttyUSB0 has not been guaranteed to do so for many years. That was just a happy accident for you as you had never used more than one USB serial device.
We now have a device manager, udev, whose job it is listen out for hot-plug events, figure out what the device is, load the appropriate driver for it and create the entry in /dev.
Life is now complex.
Seems that today the correct approach to this problem of devices hopping from name to name is to instruct udev to create symbolic links in /dev to particular devices according to some unique identifier on the actual device hardware. Then when plugging in a PropPlug one might get, automatically created a entry like "/dev/propplug" or whatever name you like.
There is a nice article on how to set up these udev rules for a bunch of USB/serial adapters here:
http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/
Still I can't account for a device coming up as /dev/ttyUSB8 when numbers 0 to 7 are free. Very odd.