LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-30-2011, 06:15 AM   #1
scurt
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Virtual Com Device configured on Com Port 8


Linux kernel: 2.6.32
No GUI interface is available.

I have a device that has a physical USB connection however it a uses virtual com and needs to be seen by Linux as a serial device configured on Com Port 8. The application that uses this hardware will only check Com Port 8 for the device.

I've read several forum posts related to configuring modems this way using serial to USB converters. Based on these I was able to get the device configured as ttyUSB0. My question is how do I configure it on Com Port 8 so that the application will recognize it?

Thanks for your help.
 
Old 10-01-2011, 02:43 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your terminology sounds very DOS/Windows-ish. The term 'Com Port 8' is not meaningful in the context of Linux. It also isn't clear when you say 'device', whether you mean the serial port itself as the device, or some other external device that communicates through a serial port. I've never heard of 'virtual com'; again this sounds very DOS/Windows like. Are you sure your application is actually a Linux application?
It might be possible to determine what serial port is being used by the application. Run your application under strace, and look for the application calling open() on something like /dev/ttyS??. This may reveal what serial port is being requested, at which point you should be able to spoof it, by creating a symbolic link with that name, and which points to the existing /dev/ttyUSB0.

--- rod.
 
1 members found this post helpful.
Old 10-02-2011, 01:26 PM   #3
scurt
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks,

I was able to get this working by creating a symbolic link to /dev/ttyS07.
 
  


Reply



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
lm-sensors acpitz-virtual-0 Adapter: Virtual device temp1: <- What is it? Maintech Linux - Hardware 9 08-24-2009 02:35 PM
virtual hosts already configured, adding an additional one fails? elby Linux - Newbie 2 05-24-2009 12:00 AM
How to SSH to different Virtual Machines with NAT configured lijianatusa Linux - Networking 13 09-17-2008 02:23 PM
Serial Port Programming/virtual Device MikeGra Programming 3 04-16-2006 03:35 PM
on which port modem need to be configured? atitce51 Linux - Networking 1 03-09-2004 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:37 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
Open Source Consulting | Domain Registration