LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-19-2009, 10:42 PM   #1
luckyluciano
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
SetSerial Help Please


Hi,

I have searched the forum many times and can not find a solution to my problem, please bare with me as i will explain.

I am running Fedora 11 and have USB device attached which is detected as /dev/tty/USB3. Software i am using does not detect USB devices so i need to make this program think its a serial device in this syntex : /dev/usb/tts/X

setserial -g /dev/ttyS* gives me:

/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4, Flags: spd_cust
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

I take ttyS0 to ttyS3 is being used.

So i would like to set : /dev/tty/USB3 TO /dev/ttyS13 or /dev/usb/tts/13 both i will try.

Would appricate any help

Thanks in advnace
 
Old 10-20-2009, 05:16 AM   #2
lutusp
Member
 
Registered: Sep 2009
Distribution: Fedora
Posts: 835

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by luckyluciano View Post
Hi,

I have searched the forum many times and can not find a solution to my problem, please bare with me as i will explain.

I am running Fedora 11 and have USB device attached which is detected as /dev/tty/USB3. Software i am using does not detect USB devices so i need to make this program think its a serial device in this syntex : /dev/usb/tts/X

setserial -g /dev/ttyS* gives me:

/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4, Flags: spd_cust
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

I take ttyS0 to ttyS3 is being used.

So i would like to set : /dev/tty/USB3 TO /dev/ttyS13 or /dev/usb/tts/13 both i will try.

Would appricate any help

Thanks in advnace
You should really find out why your software won't accept any user-designated serial port specification. But try this:

Code:
# ln -nsf /dev/ttyUSB3 /dev/ttyS13
Or any other similar syntax. But I have a question. Do you really have four USB serial ports, numbered USB0 through USB3?
 
Old 10-20-2009, 06:44 AM   #3
luckyluciano
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lutusp View Post
You should really find out why your software won't accept any user-designated serial port specification. But try this:

Code:
# ln -nsf /dev/ttyUSB3 /dev/ttyS13
Or any other similar syntax. But I have a question. Do you really have four USB serial ports, numbered USB0 through USB3?
Hi mate

Thanks for your reply and help...

It does except anything in serial format ttyS0 ttyS12 whatever... its the driver for usb that is the problem... as far as i know if there is a USB device plugged into pc like mine /tty/USB3 u must assign that USB port to say any unused serial port ie ttyS13 so the program regisers as ttyS13 but is really reading from tty/USB3 if that makes any sence lol

Yes i have a 4 usb hub... tty/USB0 to USB3

I will try what you said tonight. and let you know how i get on.

will this ln -nsf /dev/ttyUSB3 /dev/ttyS13 revert back to original state after resart and if so how can you store that permanatly?

thanks again
 
Old 10-20-2009, 01:37 PM   #4
luckyluciano
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi again

using command -nsf /dev/ttyUSB3 /dev/ttyS13 gives me :


/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4, Flags: spd_cust
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS13, UART: unknown, Port: 0x0000, IRQ: 0, Flags: low_latency
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

i know defenatly /dev/ttyUSB3 has to bee changed to /dev/ttyS13 (or similar) but i dont think -nsf /dev/ttyUSB3 /dev/ttyS13 is the right command

thanks again
 
Old 10-20-2009, 03:24 PM   #5
luckyluciano
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Hi again lol

i have found the solution was a simple

ln -s /dev/ttyUSB3 /dev/ttyS13

all working great now :-)

all i need to figure out is how to store that setting so dont delete and revert back to original config after rebbot

thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why setserial failed systemdev Linux - Newbie 0 03-13-2008 06:09 AM
setserial warrant6767 Mandriva 1 06-29-2004 09:01 PM
setserial ziox Linux - General 2 05-07-2004 06:59 PM
Setserial SMACK Mandriva 1 09-20-2003 03:35 PM
setserial ErnstVikenstein Linux - General 9 05-24-2003 08:14 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration