How to set serial port COM1, COM2

Discussions related to using VirtualBox on Windows hosts.
Post Reply
mauricioabreua
Posts: 3
Joined: 3. May 2013, 07:23

How to set serial port COM1, COM2

Post by mauricioabreua »

Hello,

Host: Windows 7
Guest: Linux Mint 14 Nadia (debian based)

I came across a very specific and unique problem I guess so.
A couple of days ago I bought 1 Arduino board and 1 USB cable. Today I tried to play with my Arduino but I had no success.
My Arduino is connected to the notebook with a USB cable.
VirtualBox could not let me handle my serial ports in the Settings menu. It outputs an error like "V_ERR_FILE_NOT_FOUND".
I don't know how to start making the right questions to help you at solving my problem.

Am I missing something? Is there any tutorial to map serial ports in the guest?
Arduino compiler is telling me ttyS0 was not found. There are so many errors.

Can someone help me?

Thanks in advance.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to set serial port COM1, COM2

Post by mpack »

Tell me how you have currently configured the "Serial Ports" branch of the VM. Include all ports if there are more than one.

Also, show me a picture of the "Ports" branch (expanded) on your hosts "Device Manager" - I want to see what ports are available. If some ports are plug and play then plug them in before.

Post both as attachments here.
mauricioabreua
Posts: 3
Joined: 3. May 2013, 07:23

Re: How to set serial port COM1, COM2

Post by mauricioabreua »

Thanks for your answer.

Actually I tried a lot of ways like "setserial /dev/ttyS0" command, included myself in dialout group.
Also I tried "lsof /dev/ttyS*" to watch what ports are actually running on my guest Linux Mint.

As attachment I put a image displaying how 4 COMS and how I tried to set them.

"ls /dev/tty*" gives me the next output:

/dev/tty /dev/tty15 /dev/tty22 /dev/tty3 /dev/tty37 /dev/tty44 /dev/tty51 /dev/tty59 /dev/tty9 /dev/ttyS14 /dev/ttyS21 /dev/ttyS29 /dev/ttyS8
/dev/tty0 /dev/tty16 /dev/tty23 /dev/tty30 /dev/tty38 /dev/tty45 /dev/tty52 /dev/tty6 /dev/ttyprintk /dev/ttyS15 /dev/ttyS22 /dev/ttyS3 /dev/ttyS9
/dev/tty1 /dev/tty17 /dev/tty24 /dev/tty31 /dev/tty39 /dev/tty46 /dev/tty53 /dev/tty60 /dev/ttyS0 /dev/ttyS16 /dev/ttyS23 /dev/ttyS30
/dev/tty10 /dev/tty18 /dev/tty25 /dev/tty32 /dev/tty4 /dev/tty47 /dev/tty54 /dev/tty61 /dev/ttyS1 /dev/ttyS17 /dev/ttyS24 /dev/ttyS31
/dev/tty11 /dev/tty19 /dev/tty26 /dev/tty33 /dev/tty40 /dev/tty48 /dev/tty55 /dev/tty62 /dev/ttyS10 /dev/ttyS18 /dev/ttyS25 /dev/ttyS4
/dev/tty12 /dev/tty2 /dev/tty27 /dev/tty34 /dev/tty41 /dev/tty49 /dev/tty56 /dev/tty63 /dev/ttyS11 /dev/ttyS19 /dev/ttyS26 /dev/ttyS5
/dev/tty13 /dev/tty20 /dev/tty28 /dev/tty35 /dev/tty42 /dev/tty5 /dev/tty57 /dev/tty7 /dev/ttyS12 /dev/ttyS2 /dev/ttyS27 /dev/ttyS6
/dev/tty14 /dev/tty21 /dev/tty29 /dev/tty36 /dev/tty43 /dev/tty50 /dev/tty58 /dev/tty8 /dev/ttyS13 /dev/ttyS20 /dev/ttyS28 /dev/ttyS7

Not sure if it helps you.
Attachments
Error
Error
error.png (42.59 KiB) Viewed 3929 times
Serial Ports
Serial Ports
serial_ports.png (78.07 KiB) Viewed 3929 times
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to set serial port COM1, COM2

Post by mpack »

No, that doesn't really help me. Only the second picture is useful, except that you have a pull down menu obscuring some of the fields. Also, you have not provided me with the Ports information from the host Device Manager.

Try this: post a .zip file containing the .vbox file from the VM. But I will still need that Device Manager picture.
mauricioabreua
Posts: 3
Joined: 3. May 2013, 07:23

Re: How to set serial port COM1, COM2

Post by mauricioabreua »

The hidden fields are:

Serial Port Mode: Host to Guest
Serial Port/Path: COM1

So sorry but what does "Device Manager" stand for?
I'm not sure about it but I think you want a picture of the open ports under my Windows 7, right?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to set serial port COM1, COM2

Post by mpack »

I'm sorry, "Device Manager" is a well understood term in English, I do not know what that Windows host feature is called in your language.

I'm trying to establish whether your host actually has a COM1 port, because the error message you mention in your first post indicates not. So yes, I would like you to show me a picture that establishes which ports exist on your host.

And also: that zip file containing the .vbox file for the VM.
Post Reply