Skip to content

SIO Command $DD Read App Key

Bill Kendrick edited this page May 27, 2022 · 2 revisions

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

Read App Key ($DD)

Description

After performing an Open App Key command with mode set to read, this command returns the contents of the app key, which may be up to MAX_APPKEY_LEN (64) bytes.

The actual return buffer is 66 bytes long to allow for two bytes that indicate the actual size of the key value:

Return buffer (66 bytes)

  • 2 bytes : length of actual key value in buffer
  • 64 bytes: buffer to contain max key value size (MAX_APPKEY_LEN)

The key file is closed immediately after the read operation is completed, so there's no need to call Close App Key (that function is saved for possible future use). Any other operations on the app key will require another Open App Key command.

Parameters

DCB Value
DDEVIC $70
DUNIT $01
DCOMND $DD
DSTATS $40
DBUF Pointer to 66-byte buffer
DTIMLO 15
DBYT 66
DAUX Unusued

Examples

See appkey-sample in the fujinet-apps repository.

See Also

Clone this wiki locally