Computing.Net > Forums > Disk Operating System > COM1 setup

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

COM1 setup

Reply to Message Icon

Name: jubalsams
Date: November 22, 2004 at 21:12:50 Pacific
OS: DOS 7.1
CPU/Ram: 1GHz, 128MB.
Comment:

Maybe someone can help me get a handle on this: I'm trying to transfer files bidirectionally between an old calculator and my PC.
The calculator has a programmable RS232 interface which allows setting of bits/parity/stopbits. It also allows setting protocol to anything defined in RS232.

My question is: how do i set protocol in DOS ? With MODE i can set #bits/parity and stop bits but i can't set protocol !

Someone know what the default protocol is ?
Software/Hardware XON/XOFF ENQ/ACK DSR/DTR CTS/RTS ?

I have an old FORTRAN compiler so i can write a simple program to open the COM1 port and get/send bytes but it does not provide for any uart setup at all but i can spawn DOS and do MODE command, i just don't get this protocol thing on the DOS end.

Any ideas ?




Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: November 22, 2004 at 22:49:55 Pacific
Reply:

Since your problem is on the DOS end, how about
good old ProComm 2x?

Seems I remember it had xmodem ymodem zmodem and kermit. And I think you can set you bits / flow control etc.

This site doesn't have procomm, but MMterm, Telix etc:

http://www.mudcentral.com/downloads/

Found on a search here:

http://www.euuu.com/search/meta.cgi?query=procomm+2+DOS+download

HTH

M2


0

Response Number 2
Name: jubalsams
Date: November 23, 2004 at 09:19:22 Pacific
Reply:

Do you know what default protocol is ?

Thanks for the reply.


0

Response Number 3
Name: elric
Date: November 25, 2004 at 08:48:39 Pacific
Reply:

G'day,

What Mechanix2Go has advised is correct. You will have no problem from the PC end of things. I used telix for years and it is a good programme for this type of thing- it supports all the standard protocols.
What is the output from the calculator?
Don't concern yourself with the DOS MODE command - it's archaic and completely redundant. You want a comms programme like telix (or procomm, even hyperterminal, Qmodem etc)and you can then set the protocol to suit your calculator.
regards,
Elric


0

Response Number 4
Name: jubalsams
Date: November 26, 2004 at 06:23:07 Pacific
Reply:

Binary. Don't most of those terminal programs only talk in ASCII only characters ?

The problem is speed. To convert everything to Intel Hex will slow down to 600 baud and maybe 300 baud.

Thanks anyway, i will try what you suggest.

Best


0

Response Number 5
Name: elric
Date: November 26, 2004 at 06:56:33 Pacific
Reply:

G'day,

Yes, they are primarialy concerned with ASCII character transmission, but that is 7/8 bit binary anyway. It is just how you interpret the information in the software once you successfully receive it.
So, any sort of communications programme should enable you to transfer the data to the PC. That is, of course, if you are using standard RS232 protocols and hardware- as you have already declared- you should be able to just "write out to the port" at suitable rates. I would go for something like 8data bits, 1 start bit, 1 stop bit and no parity. You would then need to choose a suitable baud rate for ports, and this would primarilly be determined by the UART and the characteristics of the connection.
If your calculator does not support any of the protocols (ie Kermit, Xmodem, Zmodem etc)I think a terminal programme will just acecept a "file dump" to a file on your disk.
Anyway, I'm confident you will work it out.
regards,
Elric


0

Related Posts

See More



Response Number 6
Name: wizard-fred
Date: November 26, 2004 at 07:01:11 Pacific
Reply:

If you are transfering binary data, then software protocols cannot be used.


0

Response Number 7
Name: jubalsams
Date: November 27, 2004 at 21:22:48 Pacific
Reply:

Thanks for the great info.

Binary, ya when i send say an XOFF it would just be part of the data stream and one of the data stream may well be a protocol byte.

Guess i will try to do a hardware protocol, just the more i learn the less promising it looks. The stuff i have seen so far indicates that those handshake lines are not "supposed" to control data flow, but rather only device status.

The other approach is like elric said, just send a header string to the PC program "I'm gonna send 10240 bytes now!", or "Please send me 10240 bytes now!". And use NO protocol. Just slow it down till it works.

Sorry, i've been thinking aloud,
Thanks again for the ideas.


0

Response Number 8
Name: Mike Newcomb
Date: November 29, 2004 at 05:09:24 Pacific
Reply:

To answer your original question, one uses the MODE command to set up speed, bits etc., and the port uses the cable connections for handshaking with DTR and RTS/CTS although these can be bypassed by the wiring connections if required.

Use the P (I think) parameter on the end of the mode command, otherwise data may be lost.

Good luck - Keep us posted.


0

Response Number 9
Name: jubalsams
Date: December 6, 2004 at 06:42:49 Pacific
Reply:

Mike Newcomb,
If that is true then i should not be worrying about setting up protocol. I can just use HW protocol.

Man i am pulling my hair out trying to understand the protocol.
Transmitter protocol:
Two options: Host or Terminal
Reciever protocol:
only seems to have one option, but who controls transmission backwards ?

ALL soft i found has option "software protocol" but there are four of those and they won't tell what they are using.

"hardware protocol" has the same confusion, they will never tell what HW protocol they are using: CTS/RTS, DSR/RTS or BOTH and they will never tell what they want.

Driving me crazy an i gotta find my RS232 line detector box. Where did i leave that.
Mayby Radio Shack still sells them.

This box i have has erery possible configuration via soft control but there are thousands of possabilities. Gotta just try i guess. Currently FULL DUPLEX four line control don't work with anything, not even Hyperterm on HW control: once again they don't say what HW control means exactly .. just hook it up they say ... and it don't work. "hardware" or "software" but NONE tell what those define.

arrrrgggg

Best


0

Response Number 10
Name: elric
Date: December 6, 2004 at 08:01:15 Pacific
Reply:

G'day,

Yes, this data transfer thing can be a little tricky. It can depend on how the two devices are connected.
What hardware lines do you have? ie what is the pinout of the calculator (we can work out the PC end). Does it have a full RS232 output or just 3 pins?
Can you get it to just send out a string of data at a known baud rate?
Don't worry about the binary vs ASCII thing right now; just set up a terminal program on the PC to receive data at a given baud rate and look at what is received.
Jubalsams: if the calculator is RS232 compatible then you can get it to send data out at any given baud rate.
If;however, the hardware dictates otherwise , then let us know.
Good luck and don't forget to enjoy the Xmas Season..
elric


0

Response Number 11
Name: Mike Newcomb
Date: December 15, 2004 at 15:00:30 Pacific
Reply:

Keep it simple and it will work.

As you say, just use h/w handshaking protocol
(from memory) 25 pin rs232:-

1 screen (not strictly necessary)
2/3 TX/RX
4/5 RTS/CTS
7 signal return
8 CD
20 DSR

As you wish to transmit both ways, you may wish to double up connections. I would hardwire them on, except for RTS/CTS

Oh the joys of the breakout box.

Good luck - Keep us posted.

Good luck - Keep us posted.


0

Sponsored Link
Ads by Google
Reply to Message Icon

DOS RENAME/Copy LFN Tools build Win98 DIR...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: COM1 setup

COM1 setup www.computing.net/answers/dos/com1-setup/15631.html

COm1 Port config. to print in DOS www.computing.net/answers/dos/com1-port-config-to-print-in-dos/16139.html

What do I name Dos Setup Disk #1? www.computing.net/answers/dos/what-do-i-name-dos-setup-disk-1/876.html