UPDATE: Problem: USB Serial devices assigned ttyUSB0 and ttyUSB1, but unable to read until unplug/replug. there are no errors, the read just blocks.
---
I've got two USB serial devices that after some wrangling with udev rules and modprobe, I was able to get assigned to ttyUSB0 and ttyUSB1 with aliases at /dev/wavetrend and /dev/canbus.
The udev rules are:
KERNEL=="ttyUSB?", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", SYMLINK+="wavetrend"
KERNEL=="ttyUSB?", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="fac6", SYMLINK+="canbus"
To get the CAN adapter to attach I have a script run on boot that copies the above rules (in a file 99-spt.rules) to /etc/udev/rules.d/ then runs the following commands.
'modprobe -r ftdi_sio'
'modprobe ftdi_sio vendor=0x0403 product=0xfac6'
This is followed by the execution of a Python script that reads and writes to both of these devices. This is being executed on an eBox 3350MX. Other machines running Ubuntu and my desktop machine are able to read from the devices just fine without a problem after a clean boot.
Any suggestions?
Thanks!