SmartWAV2-SerialMode_R1

SMARTWAV 2
Serial Mode
Vizic Technologies ©2020 | 37
7.3 Play Immediately - 49hex - ‘I ascii
Commands (host)
byte(s)
1.- 0x49 (hex), I (ascii).
2.- Channel 0x00 to 0x0D (hex), 0-13 (ascii).
3 to n .- File Name.
n+1 .- 0x00 (hex), NULL ascii.
Responses (device)
byte(s)
1.- 0x4F (hex), O (ascii) - Success ACK or
0x46 (hex), F (ascii) - Fail NAK.
Description
This command is a fast shortcut for the
“Mount Track” + “Play/Pause” commands;
the command immediately performs the
mount of the received audio(.wav) file
name on the received channel to use (0 to
13) and set the track in play state.
The file name must always be ended with the
0x00 (hex) NULL character that ends the
command.
*The file name could be received with or
without including the “.wav” extension, both
ways are accepted by the processor, also
the received name must not be larger than
128 characters including the .wav extension.
Examples (sent and
received commands)
Example 1:
Sent data:
-49,01,73,6F,6E,67,00,- Play Immediately
track called “song.wav in channel 1.
Received data:
-4F- OK.