-
Notifications
You must be signed in to change notification settings - Fork 74
SIO Command $F0 Enable UDPStream Mode
mozzwald edited this page May 31, 2022
·
1 revision
This is a command for Device $70 - The FujiNet Device itself (see SIO-Commands-for-Device-ID-$70).
Given a hostname or ip address (64 characters) and port as aux1 & 2, it will open a UDP port to the address and allow data streaming. This is used to enable MIDIMaze emulation on port 5004.
DCB | Value |
---|---|
DDEVIC | $70 |
DUNIT | $01 |
DCOMND | $FB |
DSTATS | $80 |
DBUF | Pointer to a 64 byte buffer containing hostname or ip address, example below |
DTIMLO | $0F |
DBYT | 64 |
DAUX1 | byte 1 of port |
DAUX2 | byte 2 of port |
/**
* Enable UDP Stream on HOST / PORT
*/
void fuji_sio_enable_udpstream()
{
char host[64];
int port = 6502;
strcat(host, "192.168.1.118");
set_sio_defaults();
OS.dcb.dcomnd = 0xF0; // Enable UDP Stream
OS.dcb.dstats = 0x80; // Computer->Peripheral
OS.dcb.dbuf = &host;
OS.dcb.dbyt = sizeof(host);
OS.dcb.daux = port;
siov();
}
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine