LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Virtual Com Device configured on Com Port 8 (https://www.linuxquestions.org/questions/linux-hardware-18/virtual-com-device-configured-on-com-port-8-a-905762/)

scurt 09-30-2011 06:15 AM

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.

theNbomr 10-01-2011 02:43 AM

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.

scurt 10-02-2011 01:26 PM

Thanks,

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


All times are GMT -5. The time now is 10:57 PM.