LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-26-2009, 04:31 PM   #1
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Rep: Reputation: 15
USB Serial device name?


Does anyone know what name Slackware gives to a USB serial device (its rs232 to usb lead)?

Most distros seem to give it '/dev/ttyUSB0' or similar, but in my /dev/tty dir its just a lot generic tty names

Slack does detect the device:

Code:
Bus 002 Device 003: ID 1a86:7523 Unknown HL-340 USB-Serial adapter
thanks for your help,

Ed
 
Old 03-26-2009, 04:55 PM   #2
Earl Parker II
Member
 
Registered: Jan 2002
Location: Shelby, NC, US
Distribution: Slackware 12.2
Posts: 127

Rep: Reputation: 17
Are you running udev? Open a console window and enter 'ps -A | grep udevd'. If not, you can enter 'chmod 755 /etc/rc.d/rc.udev' then '/etc/rc.d/./rc.udev start'.

Plug in a USB device and see if it's detected. If it is, enter 'dmesg' in a console window and hit the 'End' key. You'll see all kinds of info about the USB device you've just plugged in. It should be referred to as sda1, meaning it's using the /dev/sda1 file. The next USB device you plug in should be /dev/sdb1, etc.

This probably isn't the way to do it, but I create directories under /mnt/ for each USB port- usb1, usb2, etc. I then add lines to /etc/fstab for each port as below:

Code:
/dev/sda1        /mnt/usb1        auto        noauto,owner (or users, your choice),rw  0   0
I figure I'll never use more USB devices than I have ports. Using the above method I always know where every USB device is mounted.
 
Old 03-26-2009, 05:14 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 2,612

Rep: Reputation: 228Reputation: 228Reputation: 228
that would be for usb storage, but installing statserial and running statserial /dev/ttyUSBX to see if it recognizes a serial device there
 
Old 03-26-2009, 06:17 PM   #5
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
ah thanks michaelk,

the kernel does indeed have a HL-341 driver (which i didnt have built). Hopefully just adding the statement which the 3rd link specificies will solve it.

Last edited by edM; 03-26-2009 at 06:18 PM.
 
Old 03-26-2009, 06:19 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,919

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Be sure to post back if it works.
 
Old 03-26-2009, 07:58 PM   #7
edM
Member
 
Registered: Nov 2003
Location: U.K.
Distribution: Slackware-12
Posts: 137

Original Poster
Rep: Reputation: 15
http://blog.crox.net/archives/34-Usi...ver-ch341.html

following the instructions in this link, and a recompile. I can now access the serial device.

Note this now not necessary from 2.6.26.

Code:
ed@mars:~$ ls /dev/ | grep USB
ttyUSB0
thanks again.
 
Old 03-26-2009, 08:08 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,919

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
Well done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial input device using usb-serial connector slackiz Linux - Hardware 4 01-12-2009 05:04 AM
Connect from FC6 box to other device via serial/usb Hewson Linux - Hardware 5 03-13-2007 03:43 PM
USB device as serial device BlackHatRob Linux - Hardware 1 06-08-2006 07:09 PM
USB-Serial Custom Device with C d13VB Programming 0 05-11-2005 09:45 AM
USB->Serial Device hugoveiga Linux - Hardware 0 01-06-2005 07:04 AM


All times are GMT -5. The time now is 05:02 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration