I hope this post will help anyone out there as I too needed help with this, so after searching the web for the best part of last night i have decided to sign up and post what i leant on here in one place.
The drivers are already installed so dont worry about those but you can check using these commands:
Code: Select all
dmegs will print the following to your screen with the converter/cable attached
Code: Select all
[ 381.259373] ch341 2-5:1.0: device disconnected
[ 1079.740020] usb 2-5: new full-speed USB device number 4 using ohci_hcd
[ 1079.949788] usb 2-5: New USB device found, idVendor=1a86, idProduct=7523
[ 1079.949793] usb 2-5: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 1079.949797] usb 2-5: Product: USB2.0-Ser!
[ 1079.952834] ch341 2-5:1.0: ch341-uart converter detected
[ 1079.988849] usb 2-5: ch341-uart converter now attached to ttyUSB0 ----------> this is the part you want to see as this is the port your be using in puTty or any other communication console
with the converter disconnected use the following command "lsusb"
Code: Select all
user@mint-host ~ $ lsusb
Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 002 Device 002: ID 062a:0208 Creative Labs
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
now attached the cable again and re-run the same command
Code: Select all
user@mint-host ~ $ lsusb
Bus 001 Device 003: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 002 Device 002: ID 062a:0208 Creative Labs
Bus 002 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter -------------> new line added
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Notice the new line added? this is your device. So everything seems to work. expect you wont be able to connect (I’m using cisco router/switch via the console port) go a head and try yourself then come back.
So now if you have tested and it doesn't work you can try a quick and dirty trick (this will only work if the converter/cable is connected and will remain working as long as you do not unplug it.. if you do plug it back in and re-enter the code below
Code: Select all
sudo chmod 777 /dev/ttyUSB0
(make sure you enter the correct number but mostly for what I have seen is ttyUSB0. 0 is a zero)
Now if you had entered the code everything should be working, if it isn't and you checked you entered the code correctly then you need more help.
So we have so far, checked to see if the drivers are installed and working, the device is seen and we can connect. So lets fix it so you do not have to change the permission every time you re-boot. or unplug the cable. To do so enter the code below, re-boot and happy days all is good
Code: Select all
sudo adduser (your user name e.g USER in my case) dialout
I hope this will help anyone like me who was unaware permissions needed to be changed to communicate via a usb to serial interface


