Thread View: net.micro.pc
11 messages
11 total messages
Started by Doug Snow
Mon, 20 Oct 1986 19:48
Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: Doug Snow
Date: Mon, 20 Oct 1986 19:48
Date: Mon, 20 Oct 1986 19:48
17 lines
1026 bytes
1026 bytes
*******
For a large number of applications, I've always wanted to be able
to do something like...
mode com1:9600,e,1,... etc.
copy script.fil com1:
But, alas, I get a device not ready error. Anyone have any ideas/or
suggestions.
--
Doug Snow, Arts Computing Office
University of Waterloo
( 519 ) 885 - 1211 ext. 3769
dsnow@watarts.UUCP
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: tj
Date: Tue, 21 Oct 1986 15:32
Date: Tue, 21 Oct 1986 15:32
9 lines
963 bytes
963 bytes
Probasbly just looking for modem (DTR CTS) signals. Make sure that the connector (25 pin) has pin 4 jumpered to pin 5 and pins 6,8, and 20 jumpered together. Also make sure that the device at the other end of the wire can accept non stop at 9600 baud or else 1) signal using dtr signals 2) use Xon/Xoff and sending PC use software spooler that handles Xon/Xoff 3) Lose data. go for it.
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: Greg Busby
Date: Tue, 21 Oct 1986 15:56
Date: Tue, 21 Oct 1986 15:56
22 lines
1332 bytes
1332 bytes
In article <8826@watarts.UUCP> dsnow@watarts.UUCP (Doug Snow) writes: > For a large number of applications, I've always wanted to be able >to do something like... > mode com1:9600,e,1,... etc. > copy script.fil com1: > But, alas, I get a device not ready error. Anyone have any ideas/or >suggestions. > > Doug Snow We currently use a similar set of commands to download hex files to a PROM programmer -- we have a .bat file which does the following: ECHO OFF MODE COM1: 9600,N,1,... COPY %1.HEX COM1: This little sequence works fine for us. Maybe it's the ECHO OFF, or maybe the No parity, but we've had no trouble as long as the device on the COM1: port was ready. Hope this helps. GKB
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: Pierre Darmon
Date: Wed, 22 Oct 1986 00:49
Date: Wed, 22 Oct 1986 00:49
21 lines
1189 bytes
1189 bytes
In article <8826@watarts.UUCP> dsnow@watarts.UUCP (Doug Snow) writes:
>
>*******
>
> For a large number of applications, I've always wanted to be able
>to do something like...
>
> mode com1:9600,e,1,... etc.
> copy script.fil com1:
>
> But, alas, I get a device not ready error. Anyone have any ideas/or
>suggestions.
I guess the way to go is
type script.fil > com1:
--
Pierre Darmon, IBM Thomas J. Watson Research Center.
.....seismo!philabs!polaris!darmon.
darmon.yktvmz.ibm@csnet-relay
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: cramer
Date: Wed, 22 Oct 1986 17:09
Date: Wed, 22 Oct 1986 17:09
20 lines
1341 bytes
1341 bytes
> For a large number of applications, I've always wanted to be able > to do something like... > > mode com1:9600,e,1,... etc. > copy script.fil com1: > > But, alas, I get a device not ready error. Anyone have any ideas/or > suggestions. > > Doug Snow, Arts Computing Office The problem is the device attached to your serial port. I'm able to do the operation you describe above, but remember that the PC-DOS serial driver doesn't support XON/XOFF, so an XON/XOFF device will have buffer overrun problems. I'm not terribly knowledgeable with the various hardware flow control schemes -- how the device attached to COM1 is doing flow control maybe the source of the "device not ready" error. Clayton E. Cramer
Re: Can you Copy to COMn: in DOS/ How to
Author: bill
Date: Wed, 22 Oct 1986 18:44
Date: Wed, 22 Oct 1986 18:44
13 lines
982 bytes
982 bytes
What you just described seems to work just fine on my system (AT w/serial port connected to an EPROM programmer). The commands that work for me are: mode com1:96,N,8,1 copy filename com1 It works just fine if there's a colon after "com1" in the copy command, too. bill frolik hp-pcd!bill Hewlett-Packard Portable Computer Division Corvallis, Oregon
Re: Can you Copy to COMn: in DOS/ How t
Author: brian
Date: Wed, 22 Oct 1986 21:24
Date: Wed, 22 Oct 1986 21:24
20 lines
1200 bytes
1200 bytes
add to your mode statement the ,p switch, which tries forever in the
case of device timeouts (if your device holds the handshake lines
too long, you can get these)
mode com1:12,n,8,1,p
^^
important.
This assumes that you already have the port working correctly, but the
character-consuming device can't eat the characters quickly enough.
----
Brian K. Moran brian@mirror.TMC.COM
{mit-eddie, ihnp4!inmet, wjh12, cca, datacube}!mirror!brian
Mirror Systems 2067 Massachusetts Avenue Cambridge, MA, 02140
Telephone: 617-661-0777 extension 141
(((((((( * ))))))))
---
Re: Can you Copy to COMn: in DOS/ How to
Author: bobm
Date: Thu, 23 Oct 1986 18:46
Date: Thu, 23 Oct 1986 18:46
18 lines
1424 bytes
1424 bytes
The problem is that the standard IBM BIOS and device drivers must see "true" signals on the DSR and CTS inputs. If you are using a three-wire connection (transmit, recieve and ground), or if the remote device does not support these signals, you will get "Not Ready" errors. The solution is to use a fully wired cable, or at least bring through the DSR (pin 6), CTS (pin 5) and RLSD (pin 8) lines. Chances are that your remote device forces these lines true, which will make the bios happy. If it does not, then you need to wire up a quickie connector that ties those signals high. The easiest way to do this is to wire the three pins mentioned above to pins 20 (DTR) and 4 (RTS). These two signals are outputs from the PC that are always held high. Bob May hplabs!hp-pcd!bobm
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: John Jacobsen
Date: Fri, 24 Oct 1986 04:37
Date: Fri, 24 Oct 1986 04:37
19 lines
1070 bytes
1070 bytes
In article <8826@watarts.UUCP> dsnow@watarts.UUCP (Doug Snow) writes: > >******* > > For a large number of applications, I've always wanted to be able >to do something like... > > mode com1:9600,e,1,... etc. > copy script.fil com1: > > But, alas, I get a device not ready error. Anyone have any ideas/or >suggestions. I just do "copy script.fil com1" and leave out the colon. Doesn't that work? John E. Jacobsen University of Wisconsin -- Madison Academic Comp. Cntr.
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: Maintenance Account
Date: Sat, 25 Oct 1986 02:03
Date: Sat, 25 Oct 1986 02:03
45 lines
2472 bytes
2472 bytes
> > For a large number of applications, I've always wanted to be able
> >to do something like...
> >
> > mode com1:9600,e,1,... etc.
> > copy script.fil com1:
> >
> > But, alas, I get a device not ready error. Anyone have any ideas/or
> >suggestions.
>
I didn't bother to reply originally since I thought several other people
would beat me to it, but I guess I was wrong.
Your method of copying is fine, from the software end. the reason you're
getting the device not ready error is because the PC isn't receiving
the correct hardware handshaking signals. The PC requires CTS, DSR, and
DCD to be high before it'll send a thing. If it doesn't get them after
a certain time has lapsed, it will give the device not ready error.
If your serial port is on a multi-function card, there's probably some
jumper settings or dip switch settings for pulling these lines to true.
If not, you can do it by altering your cable a little bit. CTS is pin
5, DSR is pin 6, and DCD is pin 8. What you do is to jumper all these
pins to pin 20. Pin 20 is DTR (data terminal ready) and the PC pulls
this line to true virtually all the time. If you don't know how to
modify cables, probably the best way to do this would be to get what
is referred to as a mini breakout box. It's a plastic connector shell
that has a connector at either end and a little patchboard in the middle
that allows you to jumper lines together. I think they cost about $30
or so. The truly lazy could also call a place like inmac and have
them custom make a cable for you.
Note, that this method disables all handshaking. If the device you're
sending to can't take the full data stream non-stop, you'll have to
work something else out. PC's generally don't talk any type of
software handshaking (like xon/xoff).
--
/Dave Edick/
{hplabs,ihnp4}!qantel!dosadi!root
"I come in peace, take me to your lizard"
Re: Can you Copy to COMn: in DOS/ How to ready COMn: in DOS.
Author: Ferenc Horvath
Date: Wed, 05 Nov 1986 17:48
Date: Wed, 05 Nov 1986 17:48
4 lines
855 bytes
855 bytes
If you want to avoid putting jumpers on the previously mentioned pins, use the PRINT command with the file name you want to send through the COM port. Of course, you'll have to set "mode lpt1:=com1" first. I have used this to print files on an H/P LaserJet.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads