
NO.:
W62410 API
VERSION:
A
PAGE
37
1.2 The PlaybackMessage command.
Description:
This allows the MCU to playback a recording made by the CHIPSET. Playback differs
somewhat on the type of the recording that has been made.
1) In the case of a recorded ICM or memo. The message played back will be the one to which
the current pointer is pointing to of the mailbox currently in use. No ID has to be specified.
In the case of an ICM
and
if there is an CallerID 1 connected to it then this CallerID info is
reloaded in the memory of the CHIPSET. The corresponding flags (“I” and “F”) will also
be set which can then be checked e.g. by the
MonitorLine
command. The host can use this
information to display the caller who left the message on the display of the answering
machine using the commands defined in group 6.
2) In the case of an OGM, one can specify up to 32 ID’s. If no OGM is recorded then the
default OGM will be played back instead
.
Playback starts always directly after receiving the second command (which has to be either the
ContPlaybackMessage_1
command or the
ContPlaybackMessage_2
command).
The status of the telephone line is updated every 30 ms and can be requested by the MCU while
playing a message. The CHIPSET will continuously poll the hostport for the
ContPlaybackMessage_1
command or the
ContPlaybackMessage_2
command to
return the current telephone line and playback status (other commands are accepted as well, e.g.
GetFrameCounter
,
GetCurrentTime
,
MonitorLine
, etc.).
If the end of a recording is reached then the
EndOfMessage
flag is set to one and the
CHIPSET stays in play mode and continues performing line monitoring. The
PlaybackMessage
command can be completely stopped by the
Idle
command.
No offset into the message can be specified. The playback always starts from the beginning. A
possible workaround for this is to start the playback and set the pause flag immediately using the
ContPlaybackMessage_1
command and then skip to the required offset using the
ContPlaybackMessage_2
command.
The returned “M” flag indicates if there is in fact a message present in the current mailbox or not.
This avoids the use of first sending the
GetMailbox
command for checking if there are in fact
messages present in the mailbox or not before sending the
ContPlaybackMessage_1
command or the
ContPlaybackMessage_2
command. If “M” equals zero then the CHIPSET
stays
in
idle
mode
and
ContPlaybackMessage_2
command may be sent!
Command
High Byte
PlaybackMessage
0
0
0
1
Type
Remark:
type
= 2 bits specifying which type of message to be played back.
00 = The telephone call (ICM = InComing Message).
01 = A memo recording.
10 = A greeting message (OGM ID required).
11 = Reserved for future use.
ID
= Five bits specifying which OGM has to be played back (32 possible ID’s). If no OGM is
available with the requested ID then the default OGM will be played back. This ID has only to be
specified for OGM’s. In all other cases, this field should be filled in with 00000.
Returned value
High Byte
Status
0
0
0
1
M 0
Remark:
M
= 1 bit specifying if there is at least one message in the current mailbox of the specified type. If a
zero is returned, one may not use the
ContPlaybackMessage
_1
command or
ContPlaybackMessage
_2
command because there is in fact no message to be played. The
CHIPSET will stay in idle mode in this case.
0 = No messages present in the current mailbox.
1 = One or more messages are present in the current mailbox.
The above information is the exclusive intellectual property of Winbond Electronics and shall not be
disclosed, or reproduced without permission from Winbond.
no
ContPlaybackMessage_1
command
or
Low byte
0
OGM ID
0
0
1
0
Low byte
0
0
0
0
0
0
0
0
1
0