LYNGDORF CD-2 Red Book CD Player User Manual
- June 14, 2024
- LYNGDORF
Table of Contents
MODEL CD-2
RED BOOK CD PLAYER
EXTERNAL CONTROL MANUAL
Introduction
The purpose of this document is to describe how the external control interface of the device works.
Serial Settings
The serial port settings are always 8 data bits, no parity and one stop bit with a baud rate of 115200.
Commands and Requests
All commands and requests start with the ‘!’ character.
Commands end with a combination of the Carriage Return character (ascii 0x0D,
referred to as
Requests end with the character ‘?’ and
Commands can have parameters, these are enclosed in parenthesis.
Replies to a request are formatted as the request with the reply values as
parameters.
Replies always use the
Commands and requests are not case sensitive. In addition, it is possible to
subscribe to status changes from the device. In this situation, whenever a
status has changed (new state, new track etc.) the device will send a status.
This status is formed exactly like a reply to a request, except it is followed
by the character ‘!’ before the
!COMMAND |
Command |
---|---|
!COMMAND(param) |
Command with parameter |
!REQUEST? |
Request |
!REQUEST(reply) |
Reply to a request |
!REQUEST(status)! |
A status, which has changed |
Commands and requests which are malformed or has invalid parameters will just
be ignored.
If a command or request is correct but followed by garbage before the line end
chracter(s), the command or request will be executed and the garbage ignored.
Requests
The following requests are available on the CD-2:
Request name | Action | Reply |
---|---|---|
!VER? |
Requests the SW version in the CD-2 | !VER(1.23a) |
If the version is 1.23a
!STATE?
!STATE(OFF)
!STATE(OPENING)
!STATE(OPEN)
!STATE(CLOSING)
!STATE(NODISC)
!STATE(DISCERROR)
!STATE(READING)
!STATE(PLAY)
!STATE(STOP)
!STATE(PAUSE)
!STATE(WIND)
!STATE(REWIND)
!TRACK?
| Requests the number of the track currently being played.| From
!TRACK(1)
!TRACK(99)
!TRACK(-)
if no track is currently being played
!NOFTRACKS?<CR
| Requests the number of tracks on the current disc.| From
!NOFTRACKS(1)
!NOFTRACKS(99)
!NOFTRACKS(-)
!TIME?
| Requests the elapsed time of the playing track.| Reply format:
!TIME(1:23)
!TIME(-0:01)
---|---|---
!REMTIME?
!REMTIME(3:21)
where the ‘-‘ indicates, that the CD-2 is currently in the pause between
tracks, counting down to start.
!PLAYMODE?<CR >
0 = Normal play mode
1 = Repeat disc
2 = Repeat track
3 = Random play
!TRACKNAME?
the current track.
| !TRACKNAME(Name Of Track)
or !TRACKNAME()
!TRACKARTIST?< CR>
the current track.
| !TRACKARTIST(Artist Name)
!TRACKARTIST()
!DISCNAME?
the current disc.
| !DISCNAME(Name Of Disc)
!DISCNAME()
!DISCARTIST?<CR >
!DISCARTIST()
Commands
The following commands are available on the CD-2.
Command name | Command name Action |
---|---|
!OFF |
Turns the CD-2 off. |
!ON |
Turns the CD-2 on. |
!PWR |
Toggles power on the CD-2. Same functionality as the standby |
button on the front.
!EJECT
!PLAY
!PAUSE
!PLAYPAUSE
!STOP
!PREV
!NEXT
!REWIND
!WIND
!STOPWIND
!DIGIT(d)
!PLAYMODE(m)
0 = Normal play mode
1 = Repeat disc
2 = Repeat track
3 = Random play
!DISPMODE(m)
0 = Elapsed time, no CD-Text info.
1 = Remaining time, no CD-Text info.
2 = Elapsed time, CD-Text info active.
3 = Remaining time, CD-Text info active.
!SAMPLERATE(r)
0 = 44.1 kHz
1 = 48 kHz
2 = 96 kHz
3 = 192 kHz
!GAIN(g)
---|---
!SUBSCRIBESTATE
!UNSUBSCRIBESTATE
!SUBSCRIBETRACK
Will send information whenever a new track number is available
!UNSUBSCRIBETRACK
!SUBSCRIBETIME
!UNSUBSCRIBETIME
!SUBSCRIBEDISCTEXT
!UNSUBSCRIBEDISCTEXT
!SUBSCRIBETRACKTEXT
!UNSUBSCRIBETRACKTEXT
RJ 12 PIN OUT