User's Manual

Class 1 Bluetooth v2.0 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/bluetooth
57
8. FTP CLIENT PROFILE COMMANDS
The FTP profile provides a capability allowing a host to act as an ‘ftp client’ to a peer device providing an
‘ftp server’ profile as shown in the diagram below.
Figure 2: FTP client and server
An FTP client capability implies the ability to send and receive files and also to manipulate file objects in
the remote device. The Bluetooth FTP server profile specification describes the profile as one built on
Obex Exchange (OBEX) which is in turn built on SPP.
The FTP implementation allows a host attached to the module to send and receive files and in addition to
manipulate files and folders.
The format used for describing this protocol is a series of message sequence charts with accompanying
notes as appropriate, which unambiguously convey how a host and the module shall interact to perform
the task.
8.1 Generic Notes and Guidance
In the message sequence charts the following abbreviations apply:
<filename> shall mean a string delimited by the “ character. For example, “hello.txt”.
<foldername> shall mean a string delimited by the “ character.
nnn shall be a decimal number with at least one digit.
The backspace character is not supported.
All FTP commands are case sensitive.
FTP commands shall not exceed 32 characters in total.
While an FTP session is open, the host shall not deassert the modules UART_CTS line
and conversely the host MUST always be ready to accept data.
When Unicode data is transmitted, it shall be assumed that the most significant byte is
transmitted first.
If an FTP command is expecting a Unicode string as a parameter and the host has an
ASCII string, the string shall be expanded with a 0 byte in the most significant position.