Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this adapter and I'm trying desperately to mount in in Ubuntu so I can use can-utils to monitor the device but I'm failing.

I'm trying to communicate with a serial to can-bus adapter in 14.04 with can-utils this is the canopen device I'm trying to get at and this is the adapter I'm using


[ 4316.555254] usb 3-3: new full-speed USB device number 8 using xhci_hcd
[ 4316.572534] usb 3-3: New USB device found, idVendor=1a86, idProduct=7523
[ 4316.572541] usb 3-3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 4316.572545] usb 3-3: Product: USB2.0-Serial
[ 4316.573058] ch341 3-3:1.0: ch341-uart converter detected
[ 4316.574083] usb 3-3: ch341-uart converter now attached to ttyUSB1
[ 4836.845113] CAN device driver interface
[ 5389.346203] can: broadcast manager protocol (rev 20120528 t)
[ 5570.910652] systemd-hostnamed[23407]: Warning: nss-myhostname is not installed. Changing the local hostname might make it unresolveable. Please install nss-myhostname!

That is dmesg out put for the device

Which I think is the device.

lsusb gives me:

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

I've managed to mount it to slcan0 like so:

sudo slcand -o -s6 -t hw -S 3000000 /dev/ttyUSB2

ip link set up slcan0

IP link then gives me:

6: slcan1: <NOARP,UP,LOWER_UP> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10

No matter what I then throw at it via cansend I can't get a response back...

share|improve this question
> [ 4316.574083] usb 3-3: ch341-uart converter now attached to ttyUSB1 and > sudo slcand -o -s6 -t hw -S 3000000 /dev/ttyUSB2 doesn't seem to match? – Hannu Jun 28 '14 at 9:43
Does the data flow at the bus physically? Watched it at Oscilloscope? – Ruslan Gerasimov Jun 30 '14 at 10:36
no nothing seems to output from anywhere.... – vimes1984 Jun 30 '14 at 10:37
Did you terminate bus properly? CAN bus uses terminating resistors. Without them doesn't work. – Ruslan Gerasimov Jun 30 '14 at 10:40
@vimes1984, USB adapter supports max baud of 1M and Transmitter supports between 20K & 1M. The command you mentioned was with 3M baud. Try using a lower baud 1M (-S 1000000) or less. – Sneetsher Jul 1 '14 at 3:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.