10 Application Notes
User Manual 324/374
In the output of the inquiry the channel number 10 is received. This channel number is used for sending or
receiving files between the devices.
For sending a file use the obexftp command. The first parameter specifies the Bluetooth address of the remote
device and the second parameter specifies the Bluetooth channel. The third parameter is the path to the file
that must be sent:
# obexftp -b 00:07:80:57:BF:A6 -B 10 -p /etc/apns-conf.xml
Connecting...done
Tried to connect for 825ms
Sending "/etc/apns-conf.xml"...|done
Disconnecting...done
#
For receiving a file use also the obexftp command. The only difference is the last parameter.
Use the list parameter of the obexftp command, to get the available files:
# obexftp -b 00:07:80:57:BF:A6 -B 10 -l
Connecting...done
Tried to connect for 562ms
Receiving "(null)"...\<?xml version="1.0"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
<folder-listing version="1.0">
<file name="apns-conf.xml" size="250493" user-perm="RWD" modified="19700105T033647Z"
created="19700105T033647Z" accessed="19700105T033720Z" />
<file name="apn.setting" size="96" user-perm="RWD" modified="19700105T032939Z"
created="19700105T032939Z" accessed="19700105T032939Z" />
<file name="sdruntime" size="2" user-perm="RWD" modified="19700105T032926Z"
created="19700105T032926Z" accessed="19700105T032926Z" />
<file name="wakeup" size="4" user-perm="RWD" modified="19700105T032926Z"
created="19700105T032926Z" accessed="19700105T032939Z" />
<file name="interfaces" size="510" user-perm="RWD" modified="19700105T032925Z"
created="19700105T032925Z" accessed="19700105T032925Z" />
<file name="issue" size="164" user-perm="RWD" modified="19700105T032925Z"
created="19700105T032925Z" accessed="19700105T032940Z" />
<file name="hostname" size="17" user-perm="RWD" modified="19700105T032925Z"
created="19700105T032925Z" accessed="19700105T032925Z" />
<folder name="dbus" size="60" user-perm="RWD" modified="20130422T053845Z"
created="19700105T032922Z" accessed="20130422T053845Z" />
</folder-listing>
done
Disconnecting...done
#
To download, for example, the hostname file use the get parameter of the obexftp command in the following
way:
# obexftp -b 00:07:80:57:BF:A6 -B 10 -g hostname
Connecting...done
Tried to connect for 569ms
Receiving "hostname"... done
Disconnecting...done
#