Atmel AT83SND2C MP3 MP3 Player User Manual


 
Communication Protocol
AT83SND2CMP3 User Guide 3-21
7525A–MP3–07/05
Example 2 Figure 3-7 . Example: Transfer a File From Player to Remote Controller
The FS_READ_BLOCK read the file until the end of the sector size in memory. To know
the total file size, the Remote Controller shall send the FS_GETFILE_SIZE command.
Controller Player
Transfering A File
From Player to
R e mo te C o n tro lle r
F
S
_
G
E
T
N
A
M
E
F
S
_
N
A
M
E
(
F
i
l
e
N
a
m
e
)
F
S
_
F
R
E
A
D
_
B
L
O
C
K
F
S
_
F
R
E
A
D
_
B
L
O
C
K
_
D
A
T
A
(
B
l
o
c
k
)
Player read and send
the first block of data.
F
S
_
F
R
E
A
D
_
B
L
O
C
K
F
S
_
F
R
E
A
D
_
B
L
O
C
K
_
D
A
T
A
_
E
N
D
(
N
o
D
a
t
a
)
End of file reached.
File is closed. No
need to send the
FS_FCLOSE frame.