Multitech MTS2BTA-R Manual de usuario Pagina 48

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 88
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 47
Chapter 2 – AT Commands
Multi-Tech Systems, Inc. SocketWireless Bluetooth AT Commands (S000360H) 48
Chapter 3 – Using FTP and OPP Modes
Using the device in FTP and OPP modes is much different from any of the other available connection
modes. Connections are not made using ATDM or ATDS and services are not configured using the
ATSSNC command. Connection status must be obtained using ATSI22, as ATSI3 contains no information
regarding FTP or OPP connections. In addition, only one connection is allowed at a time; so multi-point
mode will be disabled once the device is in FTP or OPP mode.
To use the device as an FTP or OPP client, simply use the ATDFTP or ATDOPP command to make a
connection to a server. In order to use the device as an FTP or OPP server, the user must set the Power-
Up Connection Mode parameter in ATSW25 to either 7 or 8. Following a reset, the device will only have
one service exposed, which will either be an FTP or OPP server depending on the value set in ATSW25.
Be aware that due to the extra overhead required to operate in FTP and OPP modes, the data throughput
in these modes will be much lower. The device will not operate in Data Mode or Fast Data Mode, so the
comm parameter in ATSW25 will have no effect on the throughput. In FTP or OPP client mode, the
throughput will be approximately 30kbps if the device is in idle mode prior to making a connection. If the
device is not in idle mode, the client throughput will be approximately 15kbps. As an FTP or OPP server,
the maximum throughput will be approximately 1.4kbps.
FTP Client
The following FTP (File Transfer Protocol) commands allow the device to be used as an FTP client,
enabling it to manipulate files on an FTP server. As the client, the device will initiate the connection with the
server; e.g., a PC, PDA, or cell phone. After making a connection the device can browse the server’s
Bluetooth exchange directory, as well as upload and download files to and from the server.
Note: To achieve the maximum data throughput of 30kbps in FTP client mode, execute an ATUCL command
prior to making an FTP connection to put the device in idle mode. If the radio is not in idle mode, the data
throughput will be approximately 15kbps.
FTP Connect/Disconnect Commands
DFTP Dial FTP
This command creates a connection to the OBEX File Transfer service on a remote device. Once
this command has been sent, the device cannot be connected in any other way until the FTP
connection is disconnected.
Format: ATDFTP,<BT Address>
Parameters: BT Address: Bluetooth Address, 12 hex characters MAX
Return Parameters: <BT Address>
EXAMPLE:
TYPE: ATDFTP,123456789012<cr>
REPLY: <cr_lf>OK<cr_lf>
<cr_lf>FTP CONNECT,123456789012<cr_lf>
OR
<cr_lf>OK<cr_lf>
<cr_lf>PAIRED,123456789012<cr_lf> // if security is
enabled
<cr_lf>CONNECT,123456789012<cr_lf>
OR
<cr_lf>FTP NO ANSWER<cr_lf> // if device not present
Notes:
Vista de pagina 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 87 88

Comentarios a estos manuales

Sin comentarios