can bus - mount usb to serial adapter CANBUS and can-utils ubuntu?

07
2014-07
  • vimes1984

    OK I have this adapter and I'm trying desperatly to mount in in ubuntu so i can use can-utils to monitor the device but I'm failing... Dmesg:

    [   15.378382] usbcore: registered new interface driver ch341
    [   15.378392] usbserial: USB Serial support registered for ch341-uart
    [   15.378405] ch341 3-1:1.0: ch341-uart converter detected
    [   15.379152] usb 3-1: ch341-uart converter now attached to ttyUSB0
    

    which i think is the device and lsusb gives me:

    Bus 003 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
    

    how do i go about mapping or mounting this to the can0 so i can track it with can-utils?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    Can not mount my USB disk-- Ubuntu nor windows[dmesg including]
  • EthanZ6174

    First, here is my dmesg | tail result right after I plugged the disk in:

     $ dmesg | tail
    [ 2578.697224] scsi 6:0:0:0: Direct-Access HP v100w PMAP PQ: 0 ANSI: 0 CCS
    [ 2578.698322] sd 6:0:0:0: Attached scsi generic sg2 type 0
    [ 2578.916464] sd 6:0:0:0: [sdb] 3921920 512-byte logical blocks: (2.00 GB/1.87 GiB)
    [ 2578.916950] sd 6:0:0:0: [sdb] Write Protect is off
    [ 2578.916956] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
    [ 2578.916961] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 2578.922460] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 2578.922470] sdb:
    [ 2578.969570] sd 6:0:0:0: [sdb] Assuming drive cache: write through
    [ 2578.969578] sd 6:0:0:0: [sdb] Attached SCSI removable disk
    

    There is nothing after "sdb"...

    In the meantime, lsusb shows:

    $ lsusb
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 002 Device 004: ID 03f0:3207 Hewlett-Packard
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 006 Device 002: ID 045e:0737 Microsoft Corp.
    Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    

    Can anyone help me? What's wrong with my USB disk?


  • Related Answers
  • lorenzog

    Some USB devices need to be mounted directly, as in

    mount /dev/sdb /mnt

    (no partition number given). Try it and see what happens.

  • Shiki

    There is no problem with your drive, at least I can't see anything unusual. The only strange thing, there is no "sdb1" despite the fact that its a pendrive. Try creating a partition with gparted (sudo apt-get install gparted && sudo gparted). .. Last time I ended up spending quite a time with messing my pendrive.

  • CarlF

    Run

    sudo fdisk -l /dev/sdb
    

    Are there any partitions on the disk? Then try mounting a likely one manually. If you don't understand the result, add it to your question above.

  • Johan

    maybe it is a problem with the udev rules?

    lsusb
    Bus 002 Device 004: ID 03f0:3207 Hewlett-Packard
    

    Then use that "Bus 002 Device 004" and check what

    udevadm info -a -p  $(udevadm info -q path -n /dev/bus/usb/002/004)
    

    And then you find something like this at the top

      looking at device '/devices/pci0000:00/0000:00:1d.7/usb2/2-4':
    

    And that you can put into udevadm to test what happens with the udev rules.

    sudo udevadm test /devices/pci0000:00/0000:00:1d.7/usb2/2-4
    

    And look for stuff like

    udev_rules_apply_to_event:
    

    And if you need to change them this page is a good start.

  • chris

    It may not be your USB device, but your USB port may not be able to provide sufficient power for the device.

    On my machine, most devices work fine, but I have one USB drive that only works when plugged into one of the rear ports, which are directly on the MB. Symptioms in this case are very similar to your results.

    Options are to try a different port, or to get a powered USB hub.

  • user229713

    In my case, it didn't work in any USB port. But while reading the last answer I remembered that my HD adapter came with a double usb cable and everything worked pretty well when I used it.