public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: lars@lamasti.net (Lars Bjørndal)
To: linux-msdos <linux-msdos@vger.kernel.org>
Subject: Problem with serial port access
Date: Sat, 29 Nov 2014 13:58:31 +0100	[thread overview]
Message-ID: <m361dyxix4.fsf@dalen.lamasti.net> (raw)

Some random bytes are missing while sending data from DOS to Minicom
over a serial cable. I'd appreciate any help. My setup is as follow:

dosemu-1.4.0 on a Fedora 19 x86_64 system, run by root with -s switch.

setserial /dev/ttyS0
/dev/ttyS0, UART: 16650V2, Port: 0xe030, IRQ: 18

cat /etc/dosemu/dosemu.conf
...
$_com1 = "/dev/ttyS0 irq 18"

(I've also tried without the irq parameter.)

cat /root/.dosemu/drive_c/autoexec.bat
...
Z:\DOSEMU\SYSTEM.COM stty 9600 -F /dev/ttyS0

From DOS, I use

mode com1:96,n,8,1

On another machine, I've setup Minicom with the same parameters, and
started it.

From DOS, I use:

type <file> >com1:

and some bytes are missing from the Minicom output, and the bytes is
different if I run the command once more.

On the machine running DOSEMU, I get the following output with stty -a -F
/dev/ttyS0

speed 9600 baud; rows 0; columns 0; line = 0;
intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof =
<undef>;
eol = <undef>; eol2 = <undef>; swtch = <undef>; start = <undef>; stop =
<undef>;
susp = <undef>; rprnt = <undef>; werase = <undef>; lnext = <undef>;
flush = <undef>; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread clocal -crtscts
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon
-ixoff
-iuclc -ixany -imaxbel -iutf8
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop
-echoprt
-echoctl -echoke

I also has tried to pass crtscts to stty, and then, nothing is sent,
even though I turn on hardware flow control in Minicom.

Minicom to Minicom seems to work properly.

Hope someone can help.

Thanks and regards,
Lars

             reply	other threads:[~2014-11-29 12:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-29 12:58 Lars Bjørndal [this message]
2015-03-23 14:41 ` Problem with serial port access John Coppens
2015-03-23 19:45   ` Lars Bjørndal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m361dyxix4.fsf@dalen.lamasti.net \
    --to=lars@lamasti.net \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox