Wiki Home >> SIO-Command-$DC-Open-App-Key

SIO-Command-$DC-Open-App-Key


This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).

For current AppKey registations and to add your own see AppKey-Registry-Page

Open App Key ($DC)

Description

This command is required prior to performing a Write App Key or Read App Key command, as it sets the details needed for the key.

A six-byte buffer is sent from the Atari to FujiNet with the following information:

SizeValueNotes
2 bytescreator IDsee below
1 byteapp IDCreator-specified value (0-255)
1 bytekey IDCreator-specified value (0-255)
1 byteopen mode0 = read, 1 = write
1 bytereserved0 - currently unused

App keys are stored as files in the /FujiNet directory on the SD card. Note that only SD storage is currently supported for app key storage, and app key reads/writes will fail if no SD card is installed. The file name is constructed using the hexadecimal values for creator, app, and key. e.g. /FujiNet/B0C1010A.key

There's currently no need to close an app key, as it is immediately closed after an App Key Read or Write operation. The close function may be used in the future.

Creator IDs

This is an unsigned 16-bit value, which should allow for more than enough creators. Values from 0-255 (0x00-0xFF) are reserved for internal use by FujiNet - please don't use any value in this range.

Parameters

DCBValue
DDEVIC$70
DUNIT$01
DCOMND$DC
DSTATS$80
DBUFPointer 6-byte buffer with structure specified above
DTIMLO15
DBYT6
DAUXNot used

Examples

See Also


Wiki content is mirrored from the FujiNet Github Wiki