Veethree D7 SDK
Loading...
Searching...
No Matches
Bluetooth File Transfer via Obex

< Bluetooth

This is an example of transferring a file, via Obex. Obex is currently available in development images.

File Transfer from D7 to PC

The file will be transferred from the D7, to a PC that also has bluetooth. To do so:

  1. Enable bluetooth on the PC. e.g. on Ubuntu.
  2. From the D7 shell, enable bluetooth and scan to find the PC's mac address using commands given in Bluetooth Basics
  3. Create a file on the D7:

    $ echo "hello world" > hello.txt
  4. Run OBEX, connect to your PC using its MAC address and send the file

    $ export $(dbus-launch)
    $ /usr/libexec/bluetooth/obexd -r /home/root -a -d & obexctl
    [obex]# connect <mac address>
    [obex]# send hello.txt
    [obex]# quit

On Ubuntu, the Bluetooth Settings pane indicates that "Transferred files are placed in the Downloads folder".