Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SIO Commands for Device $70 (FujiNet Control)

Device $70 is the FujiNet control device. It provides commands for managing the FujiNet hardware itself, including WiFi configuration, host and device slot management, directory operations, cryptographic functions, and system diagnostics.

Diagnostics

CommandDescription
$00Test
$B0Alter SIO timing for T0
$B1Alter SIO timing for T1
$B2Alter SIO timing for T2
$B3Alter SIO timing for T3
$B4Alter SIO timing for T4
$B5Alter SIO timing for T5

Status

CommandDescription
$3FGet HSIO index
$53FujiNet command status
$D1Device enable status

Crypto and Hash

CommandDescription
$C5Hash output - retrieve computed hash result
$C6Hash length - get length of computed hash
$C7Hash compute - perform hash computation on buffered input
$C8Hash input - send data to be hashed

Base64 Decode

CommandDescription
$C9Base64 decode output - retrieve decoded result
$CABase64 decode length - get length of decoded data
$CBBase64 decode compute - perform decode on buffered input
$CCBase64 decode input - send Base64-encoded data to decode

Base64 Encode

CommandDescription
$CDBase64 encode output - retrieve encoded result
$CEBase64 encode length - get length of encoded data
$CFBase64 encode compute - perform encode on buffered input
$D0Base64 encode input - send raw data to encode

QR Code

CommandDescription
$BCQR input - send data to encode as QR
$BDQR encode - perform QR code generation
$BEQR length - get length of QR code output
$BFQR output - retrieve generated QR code data

GUID

CommandDescription
$BBGenerate GUID

Device Management

CommandDescription
$D4Disable device
$D5Enable device
$D6Set boot mode
$D7Mount all - mount all configured device slots
$D8Copy file
$D9Enable/disable CONFIG in D1:
$DFSet external SIO clock
$E8Get adapter config
$EBSet UART baud rate
$F0Enable UDPStream mode
$FFReset FujiNet

Time and Random

CommandDescription
$D2Get time
$D3Random number

Host Slots

Host slots define the remote servers or storage locations that FujiNet can connect to (e.g., TNFS servers, SD card).

CommandDescription
$E0Get host prefix
$E1Set host prefix
$E6Unmount host
$F3Write host slots - save host slot configuration
$F4Read host slots - retrieve host slot configuration
$F9Mount host

Device Slots

Device slots map virtual devices (e.g., D1: through D8:) to disk images on mounted hosts.

CommandDescription
$DAGet device slot filename
$E2Set filename for device slot
$E3Set HSIO index
$E9Unmount device image
$F1Write device slots - save device slot configuration
$F2Read device slots - retrieve device slot configuration
$F8Mount device image

Directory Operations

These commands allow browsing files on a mounted host.

CommandDescription
$E4Set directory position
$E5Get directory position
$F5Close directory
$F6Read directory - retrieve next directory entry
$F7Open directory
$E7New disk - create a new disk image

WiFi Configuration

CommandDescription
$EAGet WiFi enabled
$FAGet WiFi status
$FBSet SSID and connect
$FCGet scan result
$FDScan networks
$FEGet SSID

App Key Storage

App keys provide a simple key-value storage mechanism for applications to persist small amounts of configuration data on the FujiNet device.

CommandDescription
$DBClose app key
$DCOpen app key
$DDRead app key
$DEWrite app key

Complete Command Reference

For quick lookup, here is every command in numerical order:

CommandDescription
$00Test
$3FGet HSIO index
$53FujiNet command status
$B0Alter SIO timing for T0
$B1Alter SIO timing for T1
$B2Alter SIO timing for T2
$B3Alter SIO timing for T3
$B4Alter SIO timing for T4
$B5Alter SIO timing for T5
$BBGenerate GUID
$BCQR input
$BDQR encode
$BEQR length
$BFQR output
$C5Hash output
$C6Hash length
$C7Hash compute
$C8Hash input
$C9Base64 decode output
$CABase64 decode length
$CBBase64 decode compute
$CCBase64 decode input
$CDBase64 encode output
$CEBase64 encode length
$CFBase64 encode compute
$D0Base64 encode input
$D1Device enable status
$D2Get time
$D3Random number
$D4Disable device
$D5Enable device
$D6Set boot mode
$D7Mount all
$D8Copy file
$D9Enable/disable CONFIG in D1:
$DAGet device slot filename
$DBClose app key
$DCOpen app key
$DDRead app key
$DEWrite app key
$DFSet external SIO clock
$E0Get host prefix
$E1Set host prefix
$E2Set filename for device slot
$E3Set HSIO index
$E4Set directory position
$E5Get directory position
$E6Unmount host
$E7New disk
$E8Get adapter config
$E9Unmount device image
$EAGet WiFi enabled
$EBSet UART baud rate
$F0Enable UDPStream mode
$F1Write device slots
$F2Read device slots
$F3Write host slots
$F4Read host slots
$F5Close directory
$F6Read directory
$F7Open directory
$F8Mount device image
$F9Mount host
$FAGet WiFi status
$FBSet SSID and connect
$FCGet scan result
$FDScan networks
$FEGet SSID
$FFReset FujiNet