[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IIgs files -> serial port



pinder2@newton.emba.uvm.edu.uvm.edu (Justin Pinder) writes:

>Can anyone tell me how to send a file to the Apple serial port in "raw"
>format? (Using ProDOS or system utilities)..? Is there any way to 
>transmit files through the serial port at all?

That sounds very do-able. All you would have to do is list the file with
output redirected to the port. Under GNO/ME:

cat file >.ttyx

Under ORCA:

type file >.devx             (Use "devices" to find the .dev number for the)
                             (port)

If you don't use a shell, I think you're out of luck. It's just one of those things that;s really easy from a shell that's not without one...

I suppose you could always try something along the lines of...

10 print chr$(4);"open file"
20 print chr$(4);"read file"
30 get a$
40 print chr$(4);"pr#x"
50 print a$;
60 goto 20

Add an ONERR for the end of file (15 onerr goto 70 // 70 print chr$(4);"close")
and it works (but very, very slowly)
 ______________________________________________________________________
|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you!            |
|________________|________________|____________________________________|
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Need a new line for my sig now that christmas is over... Hmmhm.hmh.

>/             (__)( )      pinder2@hal.uvm.edu                               /
>/             (-o)( )      The University of Vermont                         /
>/       /------\/-()       EMBA-CF, 252 Votey Building                       /
>/      /|     ||           Speaker for the Dead / IRC                        /
>/     * ||----||           "Drugs have taught an entire generation of kids   /
>/       ^^    ^^            the metric system."                              /