Table of Contents

Audio mp3 Player Remote Control

The Cybiko computer would make a very good remote for controlling a mp3 Media Player as it has a screen to display the current song, and a keyboard to enter and change songs.

The screen will look something like this.

The architecture overview of this program is very similiar to that of RFTerm

The Client

All the control surfaces of the cybiko application are defined using bitmaps, this means that the program can be easily reskinned with different look and feel; although this would require a recompilation of the code to include the new resources it will not require any code changes.

The following control strings will be sent from the cyamp program to the media server to control its operation

When adjusting the volume on the cybiko the graphical control will slide up and down, even thou the control might be completely jammed at either the top or the bottom of the gui widget the correct control sequence will continue to be sent. The reason for this is that you can't guarantee that the volume setting on the cybiko matches that of the server program.

Keyboard control

The following keys are available from the main screens; they being either PLAY or SEARCH.

ARROWS Navigate controls
TAB Switch modes; PLAY, SEARCH
SELECT Locate other Cybiko, nominally one running SerialRelay
Fn-ENTER Show Settings page
ESC Exit the application

Settings

Usage

  1. On the cybiko connected to the PC via the rs232 port start the SerialRelay program.
    • You may want to set the serial relay option Partner quit notify to off, this way the remote can come and go without having to acknowlege the “Partner quit” dialog (which is modal).
  2. Startup the audio player remote control on your other cybiko, press the SELECT button and find the cybiko running serialrelay, there will probably only be one in the list!
  3. Startup Winamp on your PC.

IF you can't figure out how to connect these applications together then I suggest you go do the RFTerm walkthrough

Code

Only PLAY mode is implemented at the moment - pressing TAB will take you to search screen but there is nothing to be seen!

cyamp.zip

Change Log

 ?? 13-Oct-05 0.3 :: Moved track and track library count to the bottom of the screen, it had problems with large libraries due to the screen real-estate restriction where it was.\\

Improved the desktop icon. !!

 ?? 9-Oct-05 0.2 :: When the application does not have focus don't update the gui with response data (winamp feedback).

!!

A few little bugs

The Server

An information string will be sent from the server back to the client every 2sec to keep it up to date with what is playing.

The string will have the syntax %0|%1|%2|%3|%4|%5 a vertical bar is used to delimit each entry
Where %x corresponding to the following entries.

When the search mode is implemented, further data will be needed to be sent. This will consist of the following things.

There are two posibilities.

Winamp

Integration with http://www.winamp.com is quite straight forward using the serialcontrol plugin.
winampplugins.zip

After you have downloaded and installed winamp grab the plugin pack I've provided here and place both the files into the C:\Program Files\Winamp\Plugins directory.

Now you've got a winamp cybiko remote control !

Windows Media Player

This is not written yet :-)

How this will Work

Using the WMP API you can use the Interop calls to embedded a cybiko-plugin to the WMP application. This plug-in would monitor the serial port for commands being sent to it via the SerialRelay program, and invoke the various API calls needed.

The WMP plug-in would have a user interface to control such aspects as the baud rate, parity, stop bits etc.. when talking to the SerialRelay program.

WMP SDK

WMP has an API that can be used to access this program.

Some samples of API access