btftp

Name

btftp -- Transfer files over Bluetooth connection.

Synopsis

btftp [-i <name>] [<command> [parameters..]

Description

Use this to transfer files over Bluetooth connection. FTP uses a client-server connection. To use FTP over Bluetooth run btsrv (see instruction below) in server host and btftp in client host.

You find download/upload directory on server at /var/spool/affix/Inbox. Locally files are stored and searched from the current working directory

General Commands

Start btftp without parameters. It will provide you with command prompt where you can give the following commands. You do not need to always write the whole device address as a parameter you can use the entry number instead. Use discovery and list commands to find out entry numbers. Note that entry numbers might change every time you do the discovery.

help <command name>

Show quick help for this command

list

Show the list of cached Bluetooth devices, their entry numbers, and addresses.

flush

Empty the list of cached Bluetooth devices.

inquiry [length]

Search for Bluetooth devices around you. Then length is the used search time in seconds.

discovery [length]

Search for Bluetooth devices around you and resolve their names. Then length is the used search time in seconds.

browse <address>

Browse services in some remote device

search <address>

Search for services in some remote device. Use this is browse results in an empty list. Some devices do not support browsing.

OBEX Commands

ftp

This is default when launching btftp. Shows command prompt where you can list and transfer files. This is like an ordinary console ftp client.

open <address> [<channel>]

Open a connection to a OBEX server with given address.

close

Close the connection with the server.

ls [<address> [<channel>]]

List the files at the remote server.

put [<address> [<channel>]] <local-file> [remote-file]

Transfer a file to remote server

get [<address> [<channel>]] <remote-file> [local-file]

Get a file from the remote server

push <address> [<channel>] <local-file> [remote-file]

Transfer a file to remote server. This open the connection for the transfer and closes after the transfer is done.

rm [<address> [<channel>]] <remote-file>

Delete a file from the remote server

cd <dir name>

Change the directory at the remote server.

mkdir <dir name>

Create a new directory at remote server.