Flyer Firmware 1.3.1

Firmware 1.3.1 is now available! It’s a much smaller update than 1.3.0, but it brings back a feature I’ve missed for a long time: disk streaming.

Back in 2013, firmware 1.2.0 taught the Flyer to stream disks from your commodoreONLINE account instead of downloading the whole image. The server behind that went quiet years ago. I’ve now rebuilt it from scratch, and it’s running on the new commodoreONLINE server. Streaming works again even with older firmware, but 1.3.1 makes it much more robust, and adds a way to save your changes from a remote mount back to your account.

There are a couple of other handy additions, plus a few fixes. Please check it out and let me know if you run into any issues!

Updating

Update the usual way, with . Your settings and disks are kept. If you’re still on 1.2.2 and can’t connect, see the “Can’t connect?” section of the 1.3.0 post.

Streaming disks: two ways

There are two ways to use a disk from your commodoreONLINE account without downloading the whole image:

  • Remote disk download, with LOAD"DISK:My Games,R",7. A small shortcut to the disk is added to the Flyer’s disk set, so it shows up alongside your other disks. Pick it with the button or D-M as usual, and it streams from the server. To save your changes back to your account, use SAVE"DISK:My Games",7. Unlike a full local disk image, no @ is needed.
  • Remote mount, with OPEN 15,7,15,"R-M:My Games":CLOSE 15. This mounts the disk temporarily, outside your disk set, until you unmount it or power off. New in 1.3.1, you can save your changes back to your account and unmount in one step: OPEN 15,7,15,"R-U:S":CLOSE 15. If the save fails, the Flyer reports the error and leaves the disk mounted, so nothing is lost. A plain R-U still unmounts without saving. With older firmware, remote mounts are read-only.

New

  • Refresh a downloaded cloud disk. If you’ve changed a disk on commodoreONLINE, or saved it from another Flyer, you can pull the latest copy onto the disk you have active with LOAD"@DISK:",7. It keeps the disk’s place on the Flyer, and finds it even if you’ve renamed it on the site. Any unsaved changes on the Flyer are replaced. This is for fully downloaded disks: a streamed disk always reads the server’s copy, so it gives error 68.
  • Hub games (launching soon!) log in without a token. Games on the new commodoreONLINE game service now ask the Flyer for its own login token, so you don’t have to type one in. Your Flyer just needs your commodoreONLINE account set up in its config. (Game disks need to be the latest version from the site.)

Disk streaming

  • Losing the connection to the stream server no longer reboots the Flyer. The disk is unmounted instead, with 74,DRIVE NOT READY.
  • Unmounting a remote disk no longer loses the most recent write.
  • A failed remote mount no longer leaves the Flyer in a bad state. It now reports 67,NO LINK.
  • Idle remote disks stay connected. The Flyer now checks in with the server every 15 seconds.

Cloud disks

  • An interrupted disk download no longer leaves a partial disk on the Flyer.
  • LOAD"DISK:",7 and SAVE"DISK:",7 with no name now give an error, instead of misbehaving.

Game service

  • Fixed a false 21,BAD COMMAND on the Flyer’s display when starting a hub game.

Under the hood

  • The firmware is now checked by over 200 automated tests, plus the test suite that runs on the C64 itself.

Flyer Firmware 1.3.0

Flyer development is alive and well again, and I’ve just posted a major firmware update: version 1.3.0, the first since 1.2.2 back in 2021.

But before getting into the details, a bit of housekeeping. retroswitch.com and commodoreONLINE.com both got a complete server rebuild on a modern, self-updating setup. HTTPS has been turned on as well (the one exception is the Flyer’s own endpoints, since the Flyer doesn’t have the memory for encrypted connections).

commodoreONLINE has had more updates as well:

  • registration and password reset fixes
  • security audits and fixes
  • a new Commodore online gaming service that I’ll unveil and post about soon!

The gaming service is something I designed back in 2017(ish) but never had a chance to fully implement. It will work with any Commodore internet device that supports TCP connections, not just the Flyer. And of course, everything is still free (with no ads) and always will be, as long as I’m still around :).

There’s more I’ll share soon, including details about open sourcing the Flyer hardware and software!

So, back to the firmware… This is a major update. It fixes many long-standing bugs (over 60 tracked issues) and adds a few new features. A lot of the disk fixes came from new rounds of testing the Flyer side by side with a 1541, command by command, so it now behaves much more like the real thing. Please check it out and let me know if you run into any issues.

Updating

Update the usual way, with . Your settings and disks are kept. And if anything ever goes wrong, holding the button at power-on restores the factory firmware (see the User Guide).

Can’t connect? Check your router’s security settings.

Some routers check every name lookup (DNS) for security, and answer in a way that firmware 1.2.2 and earlier can’t read. I ran into this with an eero router with Advanced Security turned on, and other routers with similar “threat protection” or DNS filtering features may do the same.

What you’ll see: your other devices are online, but the Flyer can’t reach anything by name. LOAD"$^",7 (the firmware list), the update itself and commodoreONLINE listings all fail.

The workaround: turn the security feature off for a few minutes (for eero, the Advanced Security setting in the eero app), update the Flyer with LOAD"^:*",7, then turn it back on. 1.3.0 reads these replies fine, so you can leave the feature on after updating.

Changing the Flyer’s DNS server won’t help: these routers answer every lookup themselves, whichever server it’s sent to. And if you ever restore the factory firmware, you’ll need the workaround again until you update.

As an alternative, you can temporarily change your firmware server from retroswitch.com to 54.71.241.253, using the Flyer’s config utility. Update to 1.3.0, then change it back to retroswitch.com.

New

  • Groundwork for the upcoming gaming service: a new play: channel on the control unit (7).
  • D-M (mount disk) with no disk number now reports which disk is mounted.
  • With DHCP on, the Flyer now renews its address lease, so it keeps its address when left on for long periods. It also uses the DNS server from your router.
  • Flash writes are now journaled, so a power cut in the middle of one no longer loses data.

Disk drive

  • Fixed SAVE"@0:…" (save with replace), which could overwrite a different file.
  • Fixed directory, format and validate problems that could bring back deleted files.
  • Append mode for sequential files (,S,A) now works.
  • REL (relative) files: fixed files over 64 KB, record positioning, and several hangs.
  • Direct-access commands (U1, B-R, B-W, M-R, M-W) now behave as on a 1541, and M-W can no longer crash the Flyer.
  • Damaged or copy-protected disk images no longer hang the Flyer.
  • Many error codes and messages now match the 1541. A few programs may notice: for example, LOAD"*",8 now gives error 64 (file type mismatch) when the first file isn’t a program, just like a 1541.

Network and cloud

  • Works behind routers that pad their DNS replies, such as eero with Advanced Security on (see “Can’t connect?” above).
  • Chunked HTTP responses over about 8 KB are no longer cut short.
  • Fixed hangs on long HTTP header lines and on servers that stop responding.
  • Short replies are no longer lost when the server closes the connection right away.
  • Failed or interrupted downloads, error pages (like 404) and redirects to HTTPS are now reported as errors instead of being passed along as data. This includes firmware updates.
  • A failed DNS lookup no longer sends cloud requests to the wrong address.
  • DNS answers now expire, which fixes connecting to BBSes on dynamic DNS.
  • tcp: no longer loses data sent over a slow connection, and failed connections give clearer errors.
  • Long URLs, host names and settings no longer overflow memory.
  • A setting that’s too long no longer overwrites the next one (a long cloud user name used to overwrite the password), and CONFIG can now clear a setting.

Bus

  • JiffyDOS transfers are now timed correctly. On NTSC machines, loads could occasionally get bad bytes or stop after a few bytes. Reading from the control unit could also come back empty or garbled, for example CONFIG showing a setting as “fi” or stopping with ?FILE DATA ERROR.
  • JiffyDOS: loading a missing file no longer fills memory with garbage, and occasional corrupted loads are fixed.
  • Resetting the computer in the middle of a normal (non-JiffyDOS) transfer no longer leaves the Flyer unresponsive.
  • Commands over 255 characters are refused instead of running garbage.

Under the hood

  • Extensive code cleanup, a new build system and a newer compiler.
  • The firmware is now checked by about 180 automated tests, plus a test suite that runs on the C64 itself.

Let’s Try This Again

Yes, I’m back. Let’s hope it’s for a bit longer this time… sigh.

Anyway, let’s just get right to it 🙂

Version 1.2.2 firmware is now available for the Flyer! As always, you can download it by typing the following on your favorite Commodore:

The major addition in 1.2.2 is support for HTTP chunked transfer encoding, which seems to be used by Apache most of the time now, even for trivial page requests.

Also, the Flyer User’s Guide has been updated to version 1.2, and should contain up-to-date documentation for all features that have been added to Flyer over the last few firmware updates.

Note that this latest firmware was built with an all new development toolchain. While I expect everything to be fine, and I have done a reasonable amount of testing, it’s always possible (though unlikely) something has gone haywire. If you discover any issues new to 1.2.2, please let me know immediately via the contact form! And remember you can always downgrade your firmware to a previous version, or even reset your Flyer to its pristine “factory” state. The Flyer was designed to be a very robust device 🙂

I’ve spent close to a month now resurrecting Flyer development and even rebuilding retroswitch.com (although content-wise, it’s more or less identical to the old site). I’m super excited to be working on C=/hardware dev again and have some unfinished ideas from years ago I’d love to continue exploring.

Please contact me with any feedback, requests, ideas, questions or anything else! And please let me know how version 1.2.2 is working for you!

Paint Server for Flyer

Here’s a simple network programming example for the Flyer I’ve been meaning to post for quite some time. It demonstrates using the Flyer to implement a server application, utilizing the tcp listen functionality that was recently added in the 1.2.1 firmware.

It is essentially a “paint server”, and includes a corresponding client application for Windows, Mac and Linux. Once running on the Commodore/Flyer, clients can connect and paint remotely onto the Commodore’s display (nothing high tech at all – painting is done using simple character blocks). The goal was to demonstrate/provide some solutions to writing a “real” networked application for the Flyer.

Source code is included for both server and client applications.

  • The server app is written in C and developed using CC65. There are both c64 and pet targets. I am using the excellent “generic makefile” for cc65 projects, found here. Please refer to this page if you have any issues building the CC65 targets.
  • The client is written in C++ and uses the Qt 4 framework. Solution/project files are included for Visual Studio 2008 (requires the Qt Visual Studio add-in). Project files are also included for Qt Creator, which should build under Windows, OS X and Linux without issue.

Downloads

The client and server projects + source code can be downloaded here.
Precompiled binaries for Windows can be downloaded here.
The server binaries can be downloaded for the C64 here, and for the PET here.

To load the paint server directly from your Commodore using the Flyer, type the following:

For the C64: load”http:retroswitch.com/files/PaintServer.c64″,7
For the PET: load”http:retroswitch.com/files/PaintServer.pet”,7

Flyer 1.2.1 Firmware

Firmware version 1.2.1 is now available for the Flyer. It includes the following additions/fixes:

  • Ability to listen for connections. Set your Commodore up as a server!
  • TCP data source fix – no EOI was sent when reading from a channel that currently had zero bytes available.

Simply type the following command on your Commodore to instruct the Flyer to download and install the latest firmware:

Listening for Connections
To open a channel to listen for incoming connections, simply use the “listen:” channel protocol along with the port you want to listen on. A maximum of 2 channels can be listening for connections at any one time.

For example:

open2,7,2,"listen:5000"

The existing command “n-s:” (net stat) may be issued via the command channel to determine if a connection has been accepted, as it returns the connection status as part of its response.

Assuming the command channel has already been opened and bound to file id 7,

open7,7,15

the connection status may be checked as follows:

print#7,"n-s:2"
input#7,a,b$,c,d
print "connected: ";d

‘d’ will be either 1 or 0, indicating whether or not a connection has been established on channel 2.

Once a connection has been established, normal communication can proceed via print#, get# and input# commands.

New “Connection Info” Command

A new command has been added in firmware version 1.2.1, “c-i:” (connection info), which will return the remote host’s IP address and port, as well as current connection status for a particular channel. For example:

print#7,"c-i:2"
input#7,a,b$,c,d
print "error: ";a
print "remote ip: ";b$
print "remote port: ";c
print "connected: ";d

More examples will be posted shortly. Please watch this space! 🙂

Flyer 1.2.0 Firmware

Firmware version 1.2.0 is now available for the Flyer. Simply type the following command on your Commodore to instruct the Flyer to download and install the latest firmware:

It is now possible to stream disks over the network! This is accomplished by downloading a small disk shortcut to the Flyer instead of an entire image.

commodoreONLINE fully supports this exciting new feature. Updated versions of the cloud server are also available for immediate download.

To request a streaming disk shortcut, add an additional argument (“,r”) when loading a disk onto the Flyer:

load"disk:Blue Max,r",7

This indicates the disk should be remotely mounted. A very small shortcut file will be downloaded and stored on the Flyer instead of the entire disk image. Otherwise, it will appear and function just as any other disk managed by the Flyer (you can switch between both local and remote mounted disks with the button as usual).

Note there is a limit of 32 disks that can be managed by the Flyer at any one time, even though the Flyer is capable of storing many more shortcuts as they are only 4K each. This limit may be lifted in the future.

When modifying a streamed disk, the changes are not automatically copied to the original disk – the disk must be saved first. This mirrors the usage pattern of standard downloaded disks. The “,r” does not need to be specified when saving a streaming disk back to a cloud account:

save"disk:Blue Max",7

It is also possible to perform a temporary remote mount as follows:

open7,7,15,"r-m:Blue Max":close7

At this point (assuming the disk was found), the disk will be mounted for read-only access (“REMOTE MOUNT” will be displayed on the LCD). Pressing the button on the Flyer will unmount the disk automatically and return the Flyer to normal operation.

You can also unmount a temporarily mounted disk with the following command:

open7,7,15,"r-u:":close7

Firmware/Software Updates (1.1.9)

Firmware version 1.1.9 is now available for the Flyer.

1.1.9 is an interim release containing some soon-to-be-announced features which are still in development. It does, however, contain a few IEEE-488 protocol fixes (including full support for CATALOG) that I wanted to make available ASAP for the growing number of PET/Flyer users.

Cloud Server 1.0.3 is now available on Windows, Linux and Mac OS X platforms!
The latest release of the cloud server includes the following changes and new features:

  • Added ability to chose ethernet interface if multiple are available.
  • Added optional access restrictions to allow multi-user configuration (including login credentials & per user directories).
  • Disk types (d64, d71, ..) now displayed in search listings returned from the server.
  • Fixed bug causing wrong disk type ID to be sent back to the Flyer. This would cause incorrect disk types to be displayed when listing disks on the Flyer (load”$$”,7) even though the disks would otherwise work fine.
  • Media is no longer pre-scanned. Any file system changes are seen immediately.
  • Cloud Server now available for Windows, Linux (Ubuntu tested) and Mac OS X.

As always, please let me know if you have any questions or feedback, especially regarding the new platforms!

Why No Updates?

Some of you may have noticed the slowdown in updates, along with the ongoing unavailability of the Flyer and might be wondering what’s going on? Rest assured, I’m as committed as ever to the Flyer and related development!

I just completed an interstate move which has had me scrambling for the past couple months (side note – if you’ve ever wondered how to safely box your vintage computers for shipment/storage, this stuff is fantastic).

I was also dealing with a parts shortage for the Flyer, and during that downtime I started getting enough interest for future orders that I decided to look into automated assembly (each Flyer I’ve shipped to date has been hand assembled). I just received a photo of the first one “off the line” to verify parts placement, etc, and everything looks great. I expect they’ll be sent out within a couple days.

Additionally, I should be back on software and firmware development by the end of the week. I’ve received a lot of GREAT feedback over the past couple of months, and I have some surprises in store as well!

Thanks to everyone who has contacted me, and thanks for your continued interest in the Flyer!