-
Notifications
You must be signed in to change notification settings - Fork 78
Description
From my understanding it would be necessary to tell the FujiNet in advance the amount of buffer it has to reserve for the data that it will be sent.
Beyond this I guess some kind of init will be necessary that tells FujiNet that a new procedure is going to start.
There are 4 SIO commands ($C5 to $C8) to go through this procedure ($C6 still needs documentation)
So the commands have to be sent in some order:
- ?
- Upload file (in multiple blocks if needed) ($C8 Hash Input)
- Calculate hash ($C7 Hash Compute)
- Get Result ($C5 Hash Output)
So the command that obviously needs to be sent first is $C6 (Hash Length)
So it logically follows that $C6 has to tell the FujiNet that a new procedure starts, reset buffer pointers (those pointers that keep track of the data blocks) and what amount of data it is going to receive in total.
I assume that $C6 will have to be used like $CE, sending 4 bytes to the FujiNet telling about the length of the file to come (which is 4 GB minus some 66 MB).
Du I understand this correct?