- 1 SWAN Firmware for ActionsTM 20xx based Personal Multimedia Devices
- 1.1 Background
- 1.2 Availability
- 1.3 SWAN Firmware Features
- 1.4 Software Development Kit (SDK)
- 1.5 SWAN Firmware Features
- 1.6 Glossary of Terms
SWAN Firmware for ActionsTM 20xx based Personal Multimedia Devices
When a manufacturer releases a new product, they work with a limited number of staff and to a tight deadline. These limitations in resources are, sadly, reflected in the limitations of the firmware that the manufacturer is able to supply.
With more programmers and unlimited time, a product can always be improved. The s1mp3.org project is set up to achieve just that. Although we all work for free, we are an enthusiastic and organised team with no corporate deadlines to stifle our creativity.
ActionsTM have supplied the world with some incredible technology. The SWAN Firmware will unlock the true power of your ActionsTM based MP3 Player. Think of it as putting finely tuned Formula-1 Engine in your Rolls Royce.
The SWAN Firmware is being developed using the Free-BSD licencing model. That is, all source code, documentation* and development tools will be made available to the public domain. Unlike GPL, Free-BSD allows the licensed work to be incorporated into commercial products with no penalty.
SWAN Firmware Features
The SWAN Firmware will completely replace the default firmware supplied by ActionsTM.
The System Initialisation Code ("Bootstrap" or "Loader") and Operating System Kernel will be stored in ROM and execute automatically when The Player is switched on.
Further control of The Player will be under the direct control of The User and implemented by the use of various "Applications". These Applications reside in the Main Flash Memory and are loaded & executed on demand. For clarity, they are divided in to the following groups:
- System Applications
Features essential to accessing the primary functions offered by The Player. Such as 'Radio Tuner' or 'Voice Recorder'.
- User Applications
Non-essential features such as 'RSS reader' and 'Address book' etc.
A wide range of games including Playing Card Games, Board Games, Logic Puzzles, Classic Arcade Games, etc.
Applications which add visual or audio functionality to The Player. Such as 'Synchronised Lyrics Display' ('Karaoke Mode') or 'Graphical Visualisations'. Plugins will not be directly executed by The User, but by the Kernel, based upon the data stream being decoded, and the way in which The User has configured The SWAN Firmware to behave.
Applications that do not fall in any of the above categories will be classified as "Utilities". This already includes such Applications as 'Memory Analyser' and 'ROM Dumper'.
Software Development Kit (SDK)
The SDK will be provided, free of charge, in two parts:
- Tool Chain
This will include all compilers, linkers, etc. required to produce executable code for The Players.
Three Tool Chains will be available. One each for Windows, Linux and Mac.
- Source Code
The Source Code will be supplied by both SVN (for active developers) and Tarball (for 'bedroom coders').
SWAN Firmware Features
- Assembler optimised core
All timing critical functions will be coded in pure Z80 assembler to ensure optimal performance of the OS Kernel.
When music is playing the user may execute any Application without disturbing playback.
By example, a user may listen to music while playing a game or reading an e-book.
- Kernel Switching
An Application may be suspended at any time to allow the user to review details of the track playing, or change the playlist. This task switching is handled by The OS Kernel to ensure compatibility with all third-party Applications.
- Memory Manager
A comprehensive Memory Manager will be implemented to allow such things as Memory paging, Dynamically Linked Libraries and Code relocation. This will allow The SWAN Firmware to exceed the 16K ZRAM limitation suggested by the hardware design.
- Load-Balancing Flash Algorithm
To increase the lifetime of The Player, The SWAN Firmware will implement a Load-Balancing Flash Algorithm during writes to the Main Flash Memory.
- Open Source 'C' Codebase
All non-critical code will be written in ANSI 'C' for accessibility and portability.
- API Interface
All Applications will have access to the full SWAN Firmware API, allowing full control over the features offered by the ActionsTM hardware.
- Flash Memory (NAND)
Secure storage and other encryption systems
More research currently needs to be done to find out whether multi-button keystrokes are possible.
- USB Port
More research needs to be done to find out what level of control we have over the USB port, but it is anticipated that The Player can be controlled remotely by the PC; behave as a 'Games-Pad' (HID); USB Sound Card or FM Receiver.
At this time, little is known about the DSP, but it is anticipated that alongside Audio and Video CODECs, we may be able to use the DSP as a Tone Generator, Wave Analysis Tool and 3D Graphics Processor (GPU).
A comprehensive graphics library complete with text and sprite handling functions for games and other User Applications. The screen will also be available to the PC as an output device.
- I2C ("I squared C")
Both direct access to the i2c bus, and helpfully-named wrappers will be offered to the programmer.
- Hardware Independent API
The SWAN Firmware is designed to run on any device which uses the ActionsTM 20xx architecture, this implies that keyboard/button input and screen displays will vary from one Player to another. The SWAN Firmware API is designed to work on all registered Players, and flexible enough to seamlessly support new Players as they are developed.
- Extensible Design
Throughout the SWAN Firmware, consideration will always be made to future hardware enhancements (which can be anticipated).
- PC Simulator
The SWAN interface may be simulated on a PC to aid in the efficient production of Applications. Hardware dependant development (such as that which requires access to the DSP) will still require testing on real hardware.
Installation and Updates
- Automated Installation Process
To remove any risk during the installation or upgrade, the process will be controlled and monitored by a user-friendly and intelligent PC utility. This means that no matter which player the user owns, he always downloads the same SWAN Firmware Installation Program.
- Easy Updates
New Applications may be added by simply dropping the Application into the system folder on The Player.
- The Main Application (AppMain)
This special application is loaded by the Kernel when it finishes initialising the hardware. It is the gateway program to the features of The Player, and offers such options as 'Configuration', 'Music Player', 'Application Loader', etc.
AppMain will be fully skinnable and configurable by means of a plain text configuration file.
AppMain may be completely replaced by the user if desired without updating The Kernel. This means that the user is not tied-down to the default SWAN interface.
- Speech Interface
It will be possible to enable speech-guided Menu and Music navigation. This is especially useful for in-car entertainment or to offer accessibility to blind users.
- Player Customisation
All basic behaviours of The Player will be controllable from a plain text file on The Player. This will include such options as: Startup Application (AppMain); Default Play Mode; Language; Screen Contrast; Power-on Volume; etc.
- Scripting Language
The SWAN Firmware will offer an user-friendly Scripting Language. This will allow The User to write simple Applications without learning 'C' or Z80 Assembler.
Audio & Video Support
- Audio File Formats
We will support as many audio formats as possible. The list will depend on a number of factors. At present we expect to include full support for the following list: WAV; ADPCM; MOD; XM; S3M; FAR; MP3 Layer 2 & 3; WMA; OGG Vorbis; more...
The SWAN Firmware will track the play position of Audio Books, Albums and M3U playlists. It will also offer the option to "Resume Play On Boot".
- While Playing Screen (WPS)
When an audio file is being played, a screen displaying details about the track will be displayed. This screen is user configurable and can display information such as: Tag information from ID3v1, ID3v2, APEv2; bitrate; channel information; time elapsed; peak meter; etc.
All popular lyrics formats will be supported including ID3v2 Lyrics and the CD+G (Karaoke-CD) file format [.CDG]
- M3U Playlist Support
Full M3U playlist support will be offered.
Recordings may be made from either a Microphone or FM Receiver if The Player offers such features.Work is currently underway to write a document on how to modify the hardware of a Player which does not come with these features as standard.
- Video File Formats
For The Players with video support, we will support as many video formats as possible. The list will depend on a number of factors. At present we expect to include full support for the following list: AMV; MTV; more...
» Registered System Applications
- Text Reader
For plain-text files
- Image Viewer
This may be limited by the screen fitted to the The Player. Supported file format include: BMP; JPG; GIF; PNG
- Voice/FM Recorder
Offering features such as 'Record Ahead', so record may be pressed AFTER the song has started without missing the start of the song!
Note: Not all Players offer these features
» Proposed Applications
- Address Book
- DTMF tone generator / Autodialer
- Offline RSS Reader
- Offline EMaiL Reader
- Tetris (clone)
- Othello (clone)
- Klondike Solitaire
- Guitar tunner
- Many more...
Glossary of Terms
The manufacturer of the ATJ 20xx series All-In-One Multimedia IC's
- A Player / The Player
Any retail player which is built around the ATJ 20xx architecture.
- A User / The User
Any person who uses A Player.
- (The) SWAN Firmware
The new firmware for Actions(tm) based Players
- Free-BSD Licensing Model
- Non-Disclosure Agreement (NDA)
An agreement the information will be awarded to specific individuals. These wards are restricted from releasing the information, but may offer advice and help based upon the information.
- The System Initialisation Code
Often referred to as a "Bootstrap" or a "Loader" this portion of a firmware prepares the hardware for use when power is first applied.
This portion of the firmware mediates the interaction between Applications and either hardware or other Applications.
In the ActionsTM chips this is technically EEPROM (Electrically Erasable and Programmable Read Only Memory). Any code or data which exists in this portion of memory may ONLY be modified during a Firmware Upgrade Process.
- Main Flash Memory (NAND)
This memory is the main storage memory for The Player. It is used to store music and video files as well as SWAN Applications.