Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 08 JUL 1999 08:16:56PM Tuan Tran, [email protected] wrote:

Is there anyway i can send data and/or retrieve data from a serial port (COM1,–COM10) from AREV?

I currently have to write to a file and that file is in turn read by a C routine running in the background. The C routine does the read and write to the Serial Line (to display to a dump terminal).

Doing so i have to run from Windoze. If I can communicate to the serial port from AREV directly I could get rid of Windoze and run from DOS getting added stability.

Thanks.


At 08 JUL 1999 11:14PM Steve Smith wrote:

There's V124 which when used with the COMMDRV.SYS device driver handles serial communications. I believe that this caused grief on

faster ports/PCs, but it may be worth a try.

If what you have already works OK, don't mess with it.

Steve


At 18 JUL 1999 01:42PM Dean Todd - Computer Resource Team wrote:

I never had much luck using COMMDRV. However, we found that OSWrite and OSRead are very handy due to the fact that DOS treats files AND devices the same. For example:

* To make a modem dial a number, simply, Write to a comm port DIAL=ATDT " Temp= '4078983211' STATEMENT=DIAL : TEMP OSWRITE STATEMENT TO "COM3"

It's been many years but I believe the follow will read from a com port. (Not tested.)

* BUFFER=' START=TIME() BUGOUT=START + 60 NOW=START LOOP WHILE BUFFER=" AND BUGOUT < NOW NOW=TIME() OSREAD BUFFER FROM COMM.PORT ELSE NULL *MSG(BUFFER, "", "", "") REPEAT * You can also OsWrite to the printer.

(Below sends a form feed.) DECLARE SUBROUTINE MSG OSWRITE CHAR(12) TO 'PRN' * Or - Use LPT1 or LPT2 to replace PRN above MSG("Form Feed Sent to Printer!:", "T2", "", "") * Finally, Send a "beep" to the console. OSWRITE CHAR(07) TO 'CON' Very handly to wake up sleepy operators, like me. Hope this gives you some ideas.

Dean

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/e6e47603c179b96f852567a900018d1e.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1