serial port in VB

This is for discussing general topics about how to use VirtualBox.
Post Reply
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

serial port in VB

Post by ircoms »

Goodafternoun:

so, I use linux redhat over vitualbox 2.4.1 over window xp pack 3, so i have the problem of communication via serial port (ttyS0), i cheked my ttyS0 configuration (linux) it seems like COM1 configuatuion(win) i dont undersrand what is the problem i can't change corret data please help me
cordialy
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

Hi;
my question is :
is there problem with asynchronous communication in VB because I cant exchange correct data with other linux station cordialy
Zebulon
Posts: 27
Joined: 5. Oct 2007, 00:30
Location: Netherlands
Contact:

Re: serial port in VB

Post by Zebulon »

Hi..

just like in real live - if you can't / or don't - speak the expected language you won't get a (correct) reply! :mrgreen:

Regards,
Zebulon
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: serial port in VB

Post by Perryg »

ircoms wrote:Hi;
my question is :
is there problem with asynchronous communication in VB because I cant exchange correct data with other linux station cordialy
Have you turned on the serial port in the VBox GUI?
Have a look at section 3.7.6 of the users manual. It pretty much explains it all.
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

yes i Have turned on the serial port in the VBox, I can exchange DATA via the port but not correte
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

My problem is I can't exhange correct data between 2 linux pc (one over VB over window)via Serial port i hope that you can undertand me
thanx in advance
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: serial port in VB

Post by vbox4me2 »

What exactly is going wrong? are you using proper hw/sw handshaking?
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

when i try to send file.txt i receve the file in diffrent format for exemple i send
<I'm in linux over VB over windows>
file.txt

"The HylaFAX configuration parameter JobControlCmd specifies the script that is used to apply per-job controls on job characteristics such as the time-of-day to place a call.
The controls program is passed the respective job ID number as the first and only argument.

The controls program should produce a simple line-based ASCII output containing a series of records of the form: "


i reseve <linux>
file.txt
"the h<<u_<àçi_ulùmùmfiguratiojbnb jjks452222222xnbkzkhhjdjhkjkjs......."
i checked it withow VB (lwindows to linux ) it was well i received the good file
thank you
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: serial port in VB

Post by vbox4me2 »

Speed and/or handshake problem, play with the speed and verify handshake is working.
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

i cheked the speed the parity .... no problem, i think VB don't manage well asyncrous communication as virtal pc
ircoms
Posts: 7
Joined: 24. Mar 2009, 15:51

Re: serial port in VB

Post by ircoms »

thank you very much sir i continue searching
TKreuzer
Posts: 2
Joined: 4. Apr 2009, 01:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: ReactOS, Windows 7

Re: serial port in VB

Post by TKreuzer »

I am experiencing similar problems. And I spoke to other people with different configurations and similar problems.

I am using:
- Windows XP host
- VBox 2.1.4
- Virtual serial port: COM1, irq4, 0x3f8, host-pipe, [x]Create pipe

Now I boot up ReactOS, which sends serial debugging information as plain text on COM1.
I can attach a terminal to the created pipe and receive data.
As soon as larger amounts of data are sent quickly, stuff starts to get weird and parts of the data disappear (characters missing).
The described method works flawlessly on qemu and VMWare and with a serial terminal also with real Hw.

I replaced my named pipe terminal with IO Ninja. The results were better, but still characters were missing. Same using putty and connecting directly to the pipe, it was even better but still characters were missing as soon as a lot of text was sent.

Wild guess: the virtual serial port doesn't properly set Line Status Register's Empty Transmitter Holding Register
and the sender puts byte after byte into the virtual UART buffer, not noticing when it's full.

Edit: using a smaller BAUD rate on the guest improves the situation, but even at 9600 BAUD it's not perfect.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: serial port in VB

Post by vbox4me2 »

Have a look in bugtracker, if its not there please report a bug report on Bugtracker with all the details.
TKreuzer
Posts: 2
Joined: 4. Apr 2009, 01:01
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: ReactOS, Windows 7

Re: serial port in VB

Post by TKreuzer »

Post Reply