virtual box serial port

hello all
i use windows 7 and i put open suse on virtual box , i activated the port 1 (ttyS0) and it use a file.txt on the host , i succed in writing in this file from open suse to windows 7 , but when i want to read from this file i can’t ( i used cat /dev/ttyS0)
can anyone help me plz :slight_smile:

On Mon, 18 Mar 2013 14:16:02 +0000, wiss1990 wrote:

> hello all i use windows 7 and i put open suse on virtual box , i
> activated the port 1 (ttyS0) and it use a file.txt on the host , i
> succed in writing in this file from open suse to windows 7 , but when i
> want to read from this file i can’t ( i used cat /dev/ttyS0)
> can anyone help me plz :slight_smile:

What is your goal?

Serial communications requires more than just read from the device/write
to the device, there’s flow control and other things.

If we understand what you’re trying to accomplish, we might be able to
help you accomplish that goal.

Jim

–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

This is a duplicate post of:
https://forums.opensuse.org/english/get-technical-help-here/virtualization/483896-windows-opensuse.html

i want to send information from pc to virtual machine

On Mon, 18 Mar 2013 18:16:05 +0000, wiss1990 wrote:

> i want to send information from pc to virtual machine

That doesn’t really tell us much about what it is that you’re trying to
do.

I can “send information” from a host to a guest using a shared folder.
Or via e-mail.

My crystal ball is currently at the shop, so you’ll have to provide
details about what it is you’re trying to accomplish - what end result do
you have in mind? Is there a specific reason why a serial connection is
needed instead of some other technique?

So can you be a bit more specific about what it is that you’re trying to
do?

See:

http://www.catb.org/esr/faqs/smart-questions.html#goal

and:

http://www.catb.org/esr/faqs/smart-questions.html#idp29966176

Also, as eng-int noted, you’ve asked this question before. When you ask
a question, please ask it once, not over and over in new threads. That
makes it more difficult to help you because the help is spread across
multiple threads.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-03-18 19:16, wiss1990 wrote:
>
> i want to send information from pc to virtual machine

With serial port? Weird choice. :-?

–
Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On Mon, 18 Mar 2013 18:28:05 +0000, Carlos E. R. wrote:

> On 2013-03-18 19:16, wiss1990 wrote:
>>
>> i want to send information from pc to virtual machine
>
> With serial port? Weird choice. :-?

Well, it may be that he’s testing software in a VM that uses a serial
interface. Of course, that would just be a guess given the lack of
information about his ultimate goal, but I can see that there may be a
situation where that might be necessary.

But not knowing his background, goals, or specific needs, it’s really
hard to diagnose. :slight_smile:

Jim

–
Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

On 2013-03-18 19:33, Jim Henderson wrote:

…

> But not knowing his background, goals, or specific needs, it’s really
> hard to diagnose. :slight_smile:

Oh, absolutely.

I can imagine reasons to use serial ports. I use them. I even built one
with discrete chips, years ago. I like them. I knew a lot about them,
and I have forgotten more.

But as you say, the poster doesn’t explain anything. There is nothing to
go on. And what you can do with a virtualized serial port is limited, so
my guesses are even more limited.

–
Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

okay sorry for the lack of info
i want to send a text by text file from host and i want to receive that text sent by the virtual machine
the objectif is to replace an external device by the host by sending text as an information got by a sensor .

On Tue, 19 Mar 2013 12:56:04 +0000, wiss1990 wrote:

> okay sorry for the lack of info i want to send a text by text file from
> host and i want to receive that text sent by the virtual machine the
> objectif is to replace an external device by the host by sending text as
> an information got by a sensor .

What is the software that’s interpreting the text received? Does it
depend on a serial port, or are there other options?

Details - we need details. What kind of sensor? What software is in use
in the VM? What resources have you already looked at?

(This is what I meant by referencing to the “20 questions” question in
esr’s FAQ on asking questions - you’re only providing what information we
ask for, and it’s absolutely exhausting to get the information we need to
help you.)

As I said before, serial communications requires things like flow control
(generally), and a simple file interface doesn’t provide that. There’s
negotiation that takes place (CTS/RTS signals, for example) that would
have to be emulated by the interface in order to keep the data flowing at
a constant rate (or rather, to prevent it from overwhelming the
interface).

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C