?
Solved

Cannot open serial port with FC14 on VMware player

Posted on 2012-09-11
6
Medium Priority
?
1,277 Views
Last Modified: 2012-10-01
Greetings.
I have a set-up where I a WinXP host machine, hosting a Fedora Core guest OS.
On the serial port I've defined the use of my port COM5. This is actually a serial over USB port.
Now my question is : how do I address this port within my Linux Box ?

Regards,
r
0
Comment
Question by:rjorge
  • 3
  • 3
6 Comments
 
LVL 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 750 total points
ID: 38385857
If this is a USB to Serial Port Adaptor, this will appear in the VM as a USB Device, which emulates a Serial Port.

Firstly is the USB device recognized by the OS? e.g. do you see the device in dmesg or the logs.

setserial -g /dev/ttyS[0-4]
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3

try  lsbusb

and sometimes USB serial ports are recognized as

/dev/ttyUSB0
0
 

Author Comment

by:rjorge
ID: 38385971
Hi,
Below the output of my checks on the device with picocom and on dmesg.

[user@fedoraVM ~]$ picocom /dev/ttyS0 -b 115200
picocom v1.4

port is        : /dev/ttyS0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : ascii_xfr -s -v -l10
receive_cmd is : rz -vv


FATAL: cannot lock /dev/ttyS0: Permission denied
[user@fedoraVM ~]$ lsus
bash: lsus: command not found...
[user@fedoraVM ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[user@fedoraVM ~]$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    1.417048] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.665105] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    1.667037] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.667051] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
0
 
LVL 124
ID: 38385988
when you insert the USB device, does the VM detect it?

and only if the serial port is connected, will it possible provide a tty device

permission denied is usually because it does not exist.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:rjorge
ID: 38387281
Rebooted the virtual machine and now I get
[root@fedoraVM ~]# picocom /dev/ttyS0 -b 115200
picocom v1.4

port is        : /dev/ttyS0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : ascii_xfr -s -v -l10
receive_cmd is : rz -vv

Terminal ready

Unfortunately I can't really type nothing, which is strange. Am I missing something?
0
 
LVL 124
ID: 38387299
this may not be the serial port!

does the VM detect the USB device?
0
 

Author Comment

by:rjorge
ID: 38452787
Hi.
This wasn't indeed the serial port. Unfortunately at certain point it no longer became relevant to continue to run this set-up, since the problem was found some other way. I'll be awarding the points to the person providing me the most info on resolving this issue.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
In this article will go through how to backup a vPostgres DB from a broken vCenter Appliance and restore to a new vCenter Appliance.
Teach the user how to delpoy the vCenter Server Appliance and how to configure its network settings Deploy OVF: Open VM console and configure networking:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question