![]() FTP is built on a client–server model architecture using separate control and data connections between the client and the server. If you do a lot of copying of the same files, it is very handy to create a batch-type file to automate the copies.The File Transfer Protocol ( FTP) is a standard communication protocol used for the transfer of computer files from a server to a client on a computer network. You can’t fetch a list of files from the server, so you will have to know the filenames a-priori. One of the difficulties with TFTP is the inability to do a directory listing. Getting text files from the Apple will automatically translate the line endings back to LF: atftp 192.168.123.108 -get -l -r /CFFA/README Transfer text file to the Apple II with: atftp 192.168.123.108 -put -l -r /CFFA/READ.ME#040000īy using the CiderPress meta-data to set the ProDOS TXT type (the 04 part of #040000), TFTPD will do the translation. Instead, I decided to use the ProDOS file TYPE value to determine when to translate LF to CR and back. Our Apple II only wants CR, making a real mess of text files. It turns out that setting ASCII mode for transfers sends end-of-line as a CR/LF sequence. So, there are some issues with copying text files this way. The default is ‘octet’ which does no translation. the ‘–option “mode netascii”‘ sets the text mode translation. Here we are copying a text file and converting the line endings to match Linux/MacOS. Copying a text file from Apple II to Linux: atftp 192.168.123.108 -option "mode netascii" -get -l -r /CFFA/README This will be translated into the ProDOS TYPE and AUX values for the file and removed from the filename on the disk. Also note the CiderPress meta-data extension to the filename. It could have been relative to where we started TFTPD on the Apple II, but I like being explicit. The ‘-l plasma.system’ gives the local name of the file and the ‘-r /CFFA/PLASMA.SYSTEM#FF2000’ gives the remote file name. The –put option tells atftp that we are sending a file to the server. Let’s break this down: The IP address is the address displayed by the Apple II when it started TFTP. Copying a file from Linux to Apple II using the command line: atftp 192.168.123.108 -put -l plasma.system -r /CFFA/PLASMA.SYSTEM#FF2000 ![]() This only works for MacOS and Linux, Windows uses both carriage-return and newline which doesn’t convert easily. If you set your TFTP client to ‘netascii’ mode, TFTPD will do the conversion of linefeed to carriage-return and vice-versa when copying text files. The TFTPD server on the Apple II will use the CiderPress ProDOS filename metadata extension so you can set the ProDOS TYPE and AUX values with standard clients. ![]() I will use atftp under Linux for my examples as I was using A2Pi for my development machine. You can install with your Linux package manager of choice. Linux: I have used Advanced TFTP (atftp) with good results. It doesn’t have the extended command line options that atftp has, though. MacOS: A tftp client is included with MacOS, accessible from the command line. Go to” Control Panel=>Programs=>Turn features on or off” and scroll down to TFTP Client. Windows 10: You already have a TFTP client, it just has to be enabled. On your modern computer, you will need to install a TFTP client. The Apple II will display its IP address which you will need later with the TFTP client. The IP address will be fetched from a DHCP server and the Apple II will be ready to transfer files. The disk will spin as the modules are loaded and the network card should be auto-detected. Once booted, you should see the PLASMA startup message. Simply boot the floppy in your Apple II with Uthernet I or Uthernet II card installed. You can download the bootable PLASMA System floppy from GitHub: PLASMA-SYS1.PO I wrote the TFTP server and ported it back to the stable branch of PLASMA Version 1.1 (the server found a bug with the PLASMA 2.0 network module loading I’m still working out). The Trivial File Transfer Protocol fits the bill perfectly. However, as I have a nice network stack under PLASMA for these cards, I decided to build an industry-standard file transfer program. As many know, ADTPro has fantastic support for file copying using the Uthernet cards. Since I have both an Uthernet and Uthernet II card, it made sense to use these for file transfers. While working on the PLASMA 2.0 development branch, it occurred to me that copying files by floppy was just too retro.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |