Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
manual:chapter4:card [2017/06/05 19:14] smartin [Directory operations] |
manual:chapter4:card [2017/06/05 19:28] (current) smartin [SD card operations] |
=====SD card operations===== | =====SD card operations===== |
---- | ---- |
Over 30 commands dedicated to working with secure digital (SD) offline storage are available. Both SD and SDHC cards are supported. The SD card can have up to 4 partitions, denoted C:, E:, F:, G: on a PC; and '':3:'', '':4:'', '':5:'', and '':6:'' on the 50g. Paths and filenames (case-sensitive) which include the partition number are specified in the following ways on the 50g (for the first partition, '':3:''): | Over 30 commands dedicated to working with secure digital (SD) offline storage are available. Both SD and SDHC cards are supported. The SD card can have up to 4 partitions, denoted C:, E:, F:, G: on a PC; and '':3:'', '':4:'', '':5:'', and '':6:'' on the 50g. Paths and filenames (case-sensitive) are specified in the following ways on the 50g (for the first partition, '':3:''): |
| |
As a string: ''":3:/Path/to/Filename"'' | As a string (including the partition number): ''":3:Path/to/Filename"'' |
| |
| As a string (default partition): ''"Path/to/Filename"'' |
| |
As a list: ''{'Path' 'to' 'Filename'}'' | As a list: ''{'Path' 'to' 'Filename'}'' |
| ''SDRCL'' | Recall an object (file) | '''Spnum' SDRCL'' | | | ''SDRCL'' | Recall an object (file) | '''Spnum' SDRCL'' | |
| ''SDPURGE'' | Delete a file | '''Spnum' SDPURGE'' | | | ''SDPURGE'' | Delete a file | '''Spnum' SDPURGE'' | |
| ''SDCOPY'' | Copy a file | ''":3:/Test/sourcefile" ":3:/Test/destfile" SDCOPY'' | | | ''SDCOPY'' | Copy a file | ''"Test/sourcefile" "Test/destfile" SDCOPY'' | |
| ''SDMOVE'' | Move a file | ''":3:/Test/sourcefile" ":3:/Test/destfile" SDMOVE'' | | | ''SDMOVE'' | Move a file | ''"Test/sourcefile" "Test/destfile" SDMOVE'' | |
| ''SDOPENRD'' | Open a file for read | ''":3:/Test/file" SDOPENRD'', returns file handle (#xh) | | | ''SDOPENRD'' | Open a file for read | ''"Test/file" SDOPENRD'', returns file handle (#xh) | |
| ''SDOPENWR'' | Open a file for write (create new file if it doesn't exist) | ''":3:/Test/file" SDOPENWR'', returns file handle (#xh) | | | ''SDOPENWR'' | Open a file for write (create new file if it doesn't exist) | ''"Test/file" SDOPENWR'', returns file handle (#xh) | |
| ''SDOPENMOD'' | Open a file for byte modification | | | | ''SDOPENMOD'' | Open a file for byte modification | | |
| ''SDOPENAPP'' | Open a file for append | | | | ''SDOPENAPP'' | Open a file for append | | |
| ''SDFREE'' | Report free space on SD card (in bytes) | ''SDFREE'' | | | ''SDFREE'' | Report free space on SD card (in bytes) | ''SDFREE'' | |
| ''SDRESET'' | Mount card (safe to remove) | ''SDRESET'' | | | ''SDRESET'' | Mount card (safe to remove) | ''SDRESET'' | |
| ''SDOPENDIR'' | Open a directory for gathering file or sub directory information | ''":3:/Test" SDOPENDIR'' | | | ''SDOPENDIR'' | Open a directory for gathering file or sub directory information | ''"Test" SDOPENDIR'' | |
| ''SDNEXTFILE'' | Display file statistics in directory ((Returns 5 objects to stack: filename, underscore string, size (bytes), last modification date (DD.MMYYYY), last modification time (HH.MMSS); set 6 digits to display.)) (file handle from ''SDOPENDIR'') | ''#xh SDNEXTFILE'' | | | ''SDNEXTFILE'' | Display file statistics in directory ((Returns 5 objects to stack: filename, underscore string, size (bytes), last modification date (DD.MMYYYY), last modification time (HH.MMSS); set 6 digits to display.)) (file handle from ''SDOPENDIR'') | ''#xh SDNEXTFILE'' | |
| ''SDNEXTDIR'' | Display sub directory statistics within current directory | ''#xh SDNEXTDIR'' | | | ''SDNEXTDIR'' | Display sub directory statistics within current directory | ''#xh SDNEXTDIR'' | |