There actually are Unidata commands to send/receive data through a port. This is how I did modem EDI transfers on NT. I don't recall the exact commands.. Try looking for the commands "SEND" "RECEIVE". Also yes. The LINE.ATT is also needed.
Thanks, Marilyn A. Hilb Value Part, Inc Direct: 847-918-6099 Fax: 847-367-1892 [EMAIL PROTECTED] www.valuepart.com -----Original Message----- From: Dana Baron [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 12:24 PM To: U2-Users (E-mail) Subject: [U2] [UD] LINE.ATT for attaching serial line Greetings, I'm trying to write a Unidata program to interface with another system via the serial port (/dev/tty01) on a Compaq Tru64 system. I'm wondering if anyone has any experience with this that may be able to offer some advice. Specifically, according to the published protocol, I need to wait for an ENQ (ascii 5) and I reply with ACK (ascii 6). It goes on from there but I won't bore you with the details. Until today, I couldn't get the other system to recognize my ACK. Today I got it working by making a small change to the LINE.ATT command that attaches the line - I added the "DELAY" parameter. This got it working for the first exchange but not for subsequent exchanges. All of this is by way of asking: Does anyone have any more detail on how LINE.ATT with DELAY works or is supposed to work? (the page from the manual is shown below. Not much detail.) Thanks, Dana Baron System Manager Smugglers' Notch Resort Page from manual for LINE.ATT command: LINE.ATT Syntax LINE.ATT line [DELAY] Synonym LINE-ATT Description The ECL LINE.ATT command attaches a communication line to the current process. The attaching process then has exclusive use of that line until it is detached with the LINE.DET command. A single process can attach up to five resources per UniData session. Warning On some platforms, you must specify DELAY in LINE.ATT to avoid problems with subsequent UniBasic SEND commands overlaying data. ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
