home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / apple2 / 26058 < prev    next >
Encoding:
Internet Message Format  |  1992-12-28  |  2.2 KB

  1. Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!vandry
  2. From: vandry@CAM.ORG (Phillip Vandry)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: IIgs files -> serial port
  5. Message-ID: <Bzy56t.yp@CAM.ORG>
  6. Date: 28 Dec 92 01:52:04 GMT
  7. References: <1992Dec24.205211.22392@uvm.edu>
  8. Distribution: na
  9. Organization: Champlain Regional College, St-Lambert QC CANADA
  10. Lines: 42
  11.  
  12. pinder2@newton.emba.uvm.edu.uvm.edu (Justin Pinder) writes:
  13.  
  14. >Can anyone tell me how to send a file to the Apple serial port in "raw"
  15. >format? (Using ProDOS or system utilities)..? Is there any way to 
  16. >transmit files through the serial port at all?
  17.  
  18. That sounds very do-able. All you would have to do is list the file with
  19. output redirected to the port. Under GNO/ME:
  20.  
  21. cat file >.ttyx
  22.  
  23. Under ORCA:
  24.  
  25. type file >.devx             (Use "devices" to find the .dev number for the)
  26.                              (port)
  27.  
  28. 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...
  29.  
  30. I suppose you could always try something along the lines of...
  31.  
  32. 10 print chr$(4);"open file"
  33. 20 print chr$(4);"read file"
  34. 30 get a$
  35. 40 print chr$(4);"pr#x"
  36. 50 print a$;
  37. 60 goto 20
  38.  
  39. Add an ONERR for the end of file (15 onerr goto 70 // 70 print chr$(4);"close")
  40. and it works (but very, very slowly)
  41.  ______________________________________________________________________
  42. |~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  43. | Phillip Vandry | Vandry@Cam.Org | Merry Christmas II you!            |
  44. |________________|________________|____________________________________|
  45.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. Need a new line for my sig now that christmas is over... Hmmhm.hmh.
  47.  
  48. >/             (__)( )      pinder2@hal.uvm.edu                               /
  49. >/             (-o)( )      The University of Vermont                         /
  50. >/       /------\/-()       EMBA-CF, 252 Votey Building                       /
  51. >/      /|     ||           Speaker for the Dead / IRC                        /
  52. >/     * ||----||           "Drugs have taught an entire generation of kids   /
  53. >/       ^^    ^^            the metric system."                              /
  54.