Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Confused about ADT protocol
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kevin  
View profile  
 More options Nov 18 2012, 4:34 pm
Newsgroups: comp.sys.apple2
From: Kevin <ke...@hackaday.com>
Date: Sun, 18 Nov 2012 13:34:35 -0800 (PST)
Local: Sun, Nov 18 2012 4:34 pm
Subject: Confused about ADT protocol
GET and PUT seem to be making my head spin

put states

Apple sends:
  One byte: "Z" ($DA)
  Byte stream: file name (null terminated)

Host sends:
  Two bytes: file size in blocks (LSB, MSB)
  One byte: return code:
    $00 = File exists (and file size is valid)
    $02 = File does not exist
    $04 = File exists, not recognized as a valid disk image

if the disk is coming from the apple how is the host going to find a file, measure its size and check for being valid? SO I am wondering if that could be backwards, what else might be?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Schmidt  
View profile  
 More options Nov 18 2012, 9:29 pm
Newsgroups: comp.sys.apple2
From: David Schmidt <schmi...@my-deja.com>
Date: Sun, 18 Nov 2012 21:28:05 -0500
Local: Sun, Nov 18 2012 9:28 pm
Subject: Re: Confused about ADT protocol
On 11/18/2012 4:34 PM, Kevin wrote:

> put states

> Apple sends:
>    One byte: "Z" ($DA)
>    Byte stream: file name (null terminated)

> Host sends:
>    Two bytes: file size in blocks (LSB, MSB)
>    One byte: return code:
>      $00 = File exists (and file size is valid)
>      $02 = File does not exist
>      $04 = File exists, not recognized as a valid disk image

> if the disk is coming from the apple how is the host going to find a file, measure its size and check for being valid?

Some history for you: in the beginning there was ADT, and there was only
the "S" flow to send a disk.  It unconditionally sent the file, with no
concern as to whether or not the file existed on the host.  It would
fail with unable to write, or overwrite without confirmation; I don't
remember which, but both situations were bad.

ADTPro came along, and "P" was introduced.  That essentially implemented
the same (broken) semantics, though the flow has different contents.  It
positively overwrote whatever happened to be there with the same file name.

So an extension was born: the "Z" flow.  This is all transparent to the
user; the Z and P are combined into one logical flow.  You'll see both
mushed together on the protocol section just below what you cited.  What
happens with "Z" is that the proposed filename is sent to the host, and
the host replies back with a file size (which is really ignored - it
would be zero if no file existed) and a return code that indicates if
the file already exists or not.  That gives us the chance to ask the
user if they want to overwrite or not, if necessary.  If the user wants
to overwrite, or if there is no file to overwrite, then the put proceeds
apace.

> SO I am wondering if that could be backwards, what else might be?

No one ever promised it was right... ;-)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin  
View profile  
 More options Nov 18 2012, 9:31 pm
Newsgroups: comp.sys.apple2
From: Kevin <ke...@hackaday.com>
Date: Sun, 18 Nov 2012 18:31:22 -0800 (PST)
Local: Sun, Nov 18 2012 9:31 pm
Subject: Re: Confused about ADT protocol

OK I see now thanks a bunch

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kevin  
View profile  
 More options Nov 18 2012, 9:39 pm
Newsgroups: comp.sys.apple2
From: Kevin <ke...@hackaday.com>
Date: Sun, 18 Nov 2012 18:39:03 -0800 (PST)
Local: Sun, Nov 18 2012 9:39 pm
Subject: Re: Confused about ADT protocol
and if you missed one of my crazy updates what I am doing is implementing the ADT host on my micro-controller so it would have

VSDRIVE <- done
ADTPro  <- 25% done
and maybe AGS if it quits giving me fits <- not started, may have to go to version 1.something due to ram restrictions

into a nice little beige box with a SD card sticking out the front, since the amount of ram I NEED for FAT16/32 support is more or less stuck with a chip with 4x the amount of ROM that I need ... might as well "fill her up"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »