* Problem with serial port access
@ 2014-11-29 12:58 Lars Bjørndal
2015-03-23 14:41 ` John Coppens
0 siblings, 1 reply; 3+ messages in thread
From: Lars Bjørndal @ 2014-11-29 12:58 UTC (permalink / raw)
To: linux-msdos
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with serial port access
2014-11-29 12:58 Problem with serial port access Lars Bjørndal
@ 2015-03-23 14:41 ` John Coppens
2015-03-23 19:45 ` Lars Bjørndal
0 siblings, 1 reply; 3+ messages in thread
From: John Coppens @ 2015-03-23 14:41 UTC (permalink / raw)
To: Lars Bjørndal; +Cc: linux-msdos
On Sat, 29 Nov 2014 13:58:31 +0100
lars@lamasti.net (Lars Bjørndal) wrote:
> Hope someone can help.
This is somewhat late... and you've probably already solved the
problem.
Serial port communications is nearly always a headache... I used it for
many years!
Did you check the cable? Does the cable implement the DTR/DSR and/or
CTS/RTS lines (in both directions?) Some cables have strange (and
incorrect) connections at each side.
Some software also uses those lines differently from others. One of
the pairs (DSR/DTR I believe) is software controlled, so they can be
activated at different times.
To avoid cable problems you can try to enable XON/XOFF, and disable
hardware handshaking. This is simpler to debug, and even the simplest
cable should work (3 wires only).
John
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with serial port access
2015-03-23 14:41 ` John Coppens
@ 2015-03-23 19:45 ` Lars Bjørndal
0 siblings, 0 replies; 3+ messages in thread
From: Lars Bjørndal @ 2015-03-23 19:45 UTC (permalink / raw)
To: John Coppens; +Cc: linux-msdos
Thank you for your reply. You wrote:
> On Sat, 29 Nov 2014 13:58:31 +0100
> lars@lamasti.net (Lars Bjørndal) wrote:
>
> > Hope someone can help.
>
> This is somewhat late... and you've probably already solved the
> problem.
>
> Serial port communications is nearly always a headache... I used it for
> many years!
>
> Did you check the cable? Does the cable implement the DTR/DSR and/or
> CTS/RTS lines (in both directions?) Some cables have strange (and
> incorrect) connections at each side.
>
> Some software also uses those lines differently from others. One of
> the pairs (DSR/DTR I believe) is software controlled, so they can be
> activated at different times.
>
> To avoid cable problems you can try to enable XON/XOFF, and disable
> hardware handshaking. This is simpler to debug, and even the simplest
> cable should work (3 wires only).
I don't know anything about the cable. It's connected between two
servers that isn't in house. Actually, the cable workks perfectly when
using screen from one machine to log in to the serial console on
another. After disabeling the serial console, starting dosemu,
using a mode command to setup the port and trying to copy a file
over, it didn't work.
I solved my problem by using other transfere methods.
Again, thank you.
Lars
--
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-03-23 19:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-29 12:58 Problem with serial port access Lars Bjørndal
2015-03-23 14:41 ` John Coppens
2015-03-23 19:45 ` Lars Bjørndal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox