Skip to contentSkip to conversation

Serial port suppourt for win32

PATCH In review Kazu 1 participant 2 messages Mar 15, 2006 – Mar 27, 2006

lore
Share & tools
lore

Kazu

author
#0 lore raw

PATCH 1/1 Serial port suppourt for win32

Hi,

It is an experimental serial port support for win32. Here is patches and a binary.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-serial-3.patch
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-16550a.patch
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-serial-win2kxp.patch

http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20060311-serial.zip

The 16550A patch is by Benoit Canet from here.
http://lists.gnu.org/archive/html/qemu-devel/2006-02/msg00004.html

An option is:
-serial COM1

Use upper-case for COM number.
Dialog is popped up and set communication parameters.
After patches are applied and the first time Windows boots, Windows recognizes the device is updated. So wait until a device driver is installed and reboot.

I have not tested a real COM port.
I used ComEmulDrv which provides a virtual COM port pair as a device driver for Win2k/XP. I set COM5 and COM6 by it and used HyperTerminal on both Win2k guest and WinXP host. Files can be transfer between them.

http://mixw.net/related.htm#tncemu

Communication parameters are important. Tested parameters are:
Baud rate: 9600 bps
Data bit: 8 bit
Parity: none
Stop bit: 1
Flow control: none

It is necessary to set the same parameters among the guest and the host and QEMU.

When flow control is hardware, if qemu-20060311-serial-win2kxp.patch is not used, data can not be sent from Win2k guest to WinXP host.

It is too slow to use windbg. I will try to make a patch to use a named pipe for it.

Regards,
Kazu

author
#1 lore raw

Hi,

I updated a serial patch. -serial pipe: and -serial file: option are supported.
Here is a patch and binary.

http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060320-serial-3.patch

http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20060320-serial.zip

Option's examples are:
-serial pipe:com_1
-serial file:text.txt

Only one -serial option is supported. Use lower case for pipe: and file:. -serial pipe:com_1 option is for windbg.
For more information,
http://www.h7.dion.ne.jp/~qemu-win/DebuggingTips-en.html#windbg

Regards,
Kazu

Sent: Wednesday, March 15, 2006 3:44 PM from Kazu

Quoted 7 lines

Hi,

It is an experimental serial port support for win32. Here is patches and a binary.
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-serial-3.patch
http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-16550a.patch

http://www.h7.dion.ne.jp/~qemu-win/download/qemu-20060311-serial-win2kxp.patch

Quoted 10 lines

http://www.h6.dion.ne.jp/~kazuw/qemu-win/qemu-20060311-serial.zip

The 16550A patch is by Benoit Canet from here.
http://lists.gnu.org/archive/html/qemu-devel/2006-02/msg00004.html

An option is:
-serial COM1