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

Device not found on virtual machine #21

Open
130s opened this issue Feb 19, 2016 · 2 comments
Open

Device not found on virtual machine #21

130s opened this issue Feb 19, 2016 · 2 comments

Comments

@130s
Copy link
Contributor

130s commented Feb 19, 2016

After following install steps, device couldn't get found.

$ roslaunch dynpick_driver sample.launch 
... logging to /home/n130s/.ros/log/cba74924-d639-11e5-8a06-000c29ff0aaf/roslaunch-tork-kudu1-vm-precise64-8672.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://tork-kudu1-vm-precise64:33073/

SUMMARY
========

PARAMETERS
 * /dynpick_driver_node/device
 * /dynpick_driver_node/frame_id
 * /dynpick_driver_node/rate
 * /rosdistro
 * /rosversion

NODES
  /
    base_to_sensor (tf/static_transform_publisher)
    dynpick_driver_node (dynpick_driver/dynpick_driver_node)
    rviz (rviz/rviz)

auto-starting new master
process[master]: started with pid [8686]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to cba74924-d639-11e5-8a06-000c29ff0aaf
process[rosout-1]: started with pid [8699]
started core service [/rosout]
process[dynpick_driver_node-2]: started with pid [8711]
[ERROR] [1455797943.197775421]: could not open /dev/ttyUSB0


$ ls -la /dev/tty*
:
crw-rw---- 1 root dialout   4, 67 Feb 18 03:58 /dev/ttyS3
crw-rw---- 1 root dialout   4, 94 Feb 18 03:58 /dev/ttyS30
crw-rw---- 1 root dialout   4, 95 Feb 18 03:58 /dev/ttyS31
crw-rw---- 1 root dialout   4, 68 Feb 18 03:58 /dev/ttyS4
crw-rw---- 1 root dialout   4, 69 Feb 18 03:58 /dev/ttyS5
crw-rw---- 1 root dialout   4, 70 Feb 18 03:58 /dev/ttyS6
crw-rw---- 1 root dialout   4, 71 Feb 18 03:58 /dev/ttyS7
crw-rw---- 1 root dialout   4, 72 Feb 18 03:58 /dev/ttyS8
crw-rw---- 1 root dialout   4, 73 Feb 18 03:58 /dev/ttyS9
crw-rw---- 1 root dialout 188,  0 Feb 19 12:22 /dev/ttyUSB0

After manually chaging mode it worked.

chmod 666  /dev/ttyUSB0

VMware® Workstation 10.0.5 build-2443746
Host OS: Ubuntu 14.04, guest OS: Ubuntu 12.04

@130s
Copy link
Contributor Author

130s commented Feb 19, 2016

dmesg of restarting udevd --> physically removing the device --> physically plugging back in the device.

[ 2331.580302] udevd[14653]: starting version 175
[ 3385.846172] usb 2-2.1: USB disconnect, device number 5
[ 3385.846440] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 3385.846463] cp210x 2-2.1:1.0: device disconnected
[ 3398.083953] usb 2-2.1: new full-speed USB device number 6 using uhci_hcd
[ 3398.316294] usb 2-2.1: New USB device found, idVendor=10c4, idProduct=ea60
[ 3398.316298] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3398.316306] usb 2-2.1: Product: CP2102 USB to UART Bridge Controller
[ 3398.316308] usb 2-2.1: Manufacturer: Silicon Labs
[ 3398.316310] usb 2-2.1: SerialNumber: 0001
[ 3398.319765] cp210x 2-2.1:1.0: cp210x converter detected
[ 3398.576509] usb 2-2.1: reset full-speed USB device number 6 using uhci_hcd
[ 3398.854395] usb 2-2.1: cp210x converter now attached to ttyUSB0

@k-okada
Copy link
Member

k-okada commented Feb 20, 2016

may be you just forget to set udev ->
https://github.com/tork-a/dynpick_driver/blob/master/doc/index.rst
ls -al /dev/ttyUSB0
sudo chmod a+rw /dev/ttyUSB0

◉ Kei Okada

On Sat, Feb 20, 2016 at 5:56 AM, Isaac I.Y. Saito [email protected]
wrote:

dmesg of restarting udevd --> physically removing the device -->
physically plugging back in the device.

[ 2331.580302] udevd[14653]: starting version 175
[ 3385.846172] usb 2-2.1: USB disconnect, device number 5
[ 3385.846440] cp210x ttyUSB0: cp210x converter now disconnected from ttyUSB0
[ 3385.846463] cp210x 2-2.1:1.0: device disconnected
[ 3398.083953] usb 2-2.1: new full-speed USB device number 6 using uhci_hcd
[ 3398.316294] usb 2-2.1: New USB device found, idVendor=10c4, idProduct=ea60
[ 3398.316298] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3398.316306] usb 2-2.1: Product: CP2102 USB to UART Bridge Controller
[ 3398.316308] usb 2-2.1: Manufacturer: Silicon Labs
[ 3398.316310] usb 2-2.1: SerialNumber: 0001
[ 3398.319765] cp210x 2-2.1:1.0: cp210x converter detected
[ 3398.576509] usb 2-2.1: reset full-speed USB device number 6 using uhci_hcd
[ 3398.854395] usb 2-2.1: cp210x converter now attached to ttyUSB0


Reply to this email directly or view it on GitHub
#21 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants