SAVR Series Development Tools and Source

This page contains the freely available development aides for the the SAVR, SAVR2, and SAVR3. At the moment that is a linux based package consisting of a library and some basic utilities to serve as examples. This code can be freely used and redistributed for use with the any device in the SAVR family.

Comments, questions or contributions to the source on this page are always welcome.

libsavr-0.2.4.tar.gz - SAVR Series Development Library - Release 0.2.4

This development library is still a work in progress, so contributions are welcome. This is primarily a bug fix release correcting a variety of small errors. Commands and useage are the same as the 0.2.2 release except for the addition of the sraw command to permit sending arbitrary byte strings to the SAVR series devices.

libsavr-0_2_2.tgz - SAVR Series Development Library - Release 0.2.2

In addition to the resource library are two example programs. The first is called sctl and allows you to directly configure the SAVR series devices. Usage is as follows.

>> sctl --help
Usage: sctl [-d device] [-b baud] [-rfusxyhv?] [-X <port:type:xmit:recv>] [-Y <echo>]
-d--device Serial device (default=/dev/ttyS0)
-b--baud Baud rate (default=57600)
-r--reset Reset the SAVR
-f--firmware Query the SAVR firmware version
-u--uptime Query the SAVR uptime
-s--serial_numberQuery the SAVR serial number
-x--query_ports Query the SAVR data port config
-X--set_port Set the SAVR data port config with this <port:type:xmit:recv> syntax. Valid args:
port - A,B,C,1,2,3
type - S,A1,NEC,S-IR,NEC-IR,1,2,3,4,5
xmit - ON,OFF,0,1
recv - ON,OFF,0,1
-y--query_echo Query the SAVR echo
-Y--set_echo Set the SAVR echo. Valid args are:
echo - ON,OFF,0,1
-w--raw Format output as raw hex
-v--verbose Increased verbosity
-h--help This help

Examples:

sctl --device /dev/ttyS1 --firmware

sctl --device /dev/ttyS2 --query_ports

sctl --set_port A:A1:1:1

The second util is called scmd and it provides an easy front end for issuing supported commands to a device. Much of the known command set for Sony equipment has been integrated in to this library to make interaction as simple as possible.

>> scmd --help
Usage: scmd [-d device] [-b baud] [-wvh?] [-x timeout] [-p port] [-t target] [-c command] [-y protocol]
-d--device Serial device (default=/dev/ttyS0)
-b--baud Baud rate (default=57600)
-p--port SAVR port
-t--target Target device
-c--command Target command
-y--protocolTarget protocol (S,A1,NEC,S-IR,NEC-IR)
-x--timeout Timeout (default=500000us)
-l--list List target devices and commands
-w--raw Format output as raw hex
-v--verbose Increased verbosity
-h--help This help

Examples:

scmd --list

scmd --device /dev/ttyS2 --port A --target 3 --command 5

scmd --port B --protocol A1 --target cd-a --command play

scmd --port C --protocol S --target dvd-a --command next-disc

>> scmd --list

Available supported target devices and commands:
[s - Ctrl-S library support available
a - Ctrl-A1 library support available
n - NEC library support available
S - Ctrl-S IR library support available
N] - NEC IR library support available

Targets:
0 [sa S ] cd-a 1 [sa S ] cd-b 2 [sa S ] cd-c
3 [ a ] cd-a2 4 [ a ] cd-b2 5 [ a ] cd-c2
6 [s S ] dvd-a 7 [s S ] dvd-b 8 [s S ] dvd-c

Commands:
0 [sa S ] play 1 [sa S ] stop 2 [sa S ] pause
3 [ a ] pause-toggle 4 [sa S ] next-track 5 [sa S ] prev-track
6 [sa S ] next-disc 7 [sa S ] prev-disc 8 [sa S ] fast-forward
9 [sa S ] fast-rewind 10 [sa S ] forward 11 [sa S ] rewind
12 [ a ] resume 13 [ a ] panel-disable 14 [ a ] panel-enable
15 [sa S ] power-on 16 [sa S ] power-off 17 [ a ] power-toggle
18 [ a ] fade-in 19 [ a ] fade-out 20 [sa S ] fade-x
21 [sa S ] fade-x-select 22 [sa S ] open-close 23 [sa S ] scroll-display
24 [sa S ] key-1 25 [sa S ] key-2 26 [sa S ] key-3
27 [sa S ] key-4 28 [sa S ] key-5 29 [sa S ] key-6
30 [sa S ] key-7 31 [sa S ] key-8 32 [sa S ] key-9
33 [sa S ] key-0 34 [sa S ] key-10 35 [sa S ] repeat
36 [sa S ] check 37 [sa S ] shuffle 38 [sa S ] continue
39 [sa S ] program 40 [sa S ] enter 41 [sa S ] clear
42 [sa S ] disc 43 [sa S ] track 44 [sa S ] block
45 [sa S ] no-delay 46 [sa S ] mega-toggle 47 [sa S ] disc-data
48 [ a ] verbose 49 [ a ] brief 50 [ a ] start_of_tracks
51 [ a ] query-status 52 [ a ] query-model 53 [ a ] query-capacity
54 [ a ] query-mode 55 [ a ] query-contents 56 [ a ] query-memos
57 [ a ] query-cdtext 58 [ a ] query-extended

Last update: May 24, 2007

Home