The TNFS server
I run a small file server for Daisy. It has the demos, firmware and about 1,700 chiptunes on it, served over TNFS, a file protocol made for 8-bit machines. Anyone's welcome to poke around, from a Daisy, the emulator, or anything else that speaks TNFS.
A network drive an 8-bit computer can handle.
TNFS is short for Trivial Network File System. It lets a little computer open, read, write and list files on another machine over the network, more or less like they were on its own disk.
The usual network file systems were never going to fit. The TNFS docs call NFS and SMB "overly complex for 8 bit systems," and FTP wants two TCP connections per session, which is a lot to ask of a tiny network stack. So TNFS sits in between: a bit more useful than FTP for files, and a lot simpler than NFS or SMB.
Every request is one small message, and a read sends back whatever fits in one packet. Servers have to speak UDP on port 16384, since that's the easiest thing for a minimal TCP/IP stack to manage. TCP is optional, and it's what Daisy uses. There's no encryption and no security to speak of. The name is honest.
Where it came from.
- The SpectranetTNFS and its server,
tnfsd, came out of the Spectranet project, an Ethernet card for the Sinclair ZX Spectrum. It let a Spectrum load files from a server down the hall, or across the world. - FujiNetFujiNet, a WiFi adapter first made for the Atari 8-bits, picked up TNFS and its server and improved them a lot, TCP support included. It's how FujiNet gets disk images off the network.
- EverywhereThanks to FujiNet there are TNFS clients for the Atari 8-bit, Coleco ADAM, Apple II, Commodore 64 and Tandy CoCo, as well as the Spectrum. Community servers like
tnfs.fujinet.onlinehost software for all of them. - DaisyDaisy speaks it too. Point her at any
tnfsdand it shows up as the/netdrive next to the SD card. Programs, the editor and the file manager don't care which one they're using.
What's on it.
It's read-only, so look around all you like. You can't break anything.
/demos/PYTHONSource for every PyCone demo. The machine's ROM keeps only compiled copies./demos/PLUSDemos for the Daisy One Plus, including xmas with its song and DaisyAvenger!/demos/BASICBASIC programs for the original Daisy One./firmwareDaisy firmware images./vgmChiptunes as.vgzfiles, ready for Daisy's built-in player./vgm/sn94 soundtracks, 1,279 songs, written for the SN76489 family, the chip Daisy's sound is compatible with./vgm/stereo43 soundtracks, 428 songs, for two SN76489s at once.
Connecting.
From a Daisy or the emulator. Open Settings from the start menu, set the TNFS server to tnfs.pineconecomputer.com, port 16384, and connect. If you save it as the default, one call gets you back on. It shows up as /net. Play a song from the file manager, or run a demo from Python:
# connect to the saved default server daisy.netconnect() # or name it directly daisy.netconnect('tnfs.pineconecomputer.com', 16384) # look around, then run a demo import os os.listdir('/net/demos/PLUS') daisy.run('/net/demos/PLUS/xmas.py')
From a FujiNet or Spectranet. Add tnfs.pineconecomputer.com as a host. The demos only run on Daisy, but the chiptunes are plain VGM files, so they're fair game for anything.
Running your own. tnfsd is open source. Build it from FujiNet's repository (tnfs/tnfsd), run it with the folder you want to share, and open port 16384 in your firewall. Daisy will use it just like mine.
The songs in /vgm come from the VGMRips community, who do the hard work of preserving them. Credit goes to them and to the original composers.