Skip to main content

Receive a file in the server role

To receive a file in the server role, do the following:
  1. Pair the DUT and the remote device. For instructions, see Pair with a remote Bluetooth device.
  2. Initiate a connection from the remote device to the DUT.
  3. Send any file from the remote device to the DUT through Bluetooth sharing. The transfer prints appear in the obexctl screen of the DUT. After the file transfer to the DUT, the file is stored at /var/bluetooth. Sample output
    [NEW] Session /org/bluez/obex/server/session6
    [NEW] Transfer /org/bluez/obex/server/session6/transfer5
    [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Size: 36
    [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Status: active
    [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Transferred: 36 (@0KB/s 00:00)
    [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Status: complete
    [DEL] Transfer /org/bluez/obex/server/session6/transfer5
    [DEL] Session /org/bluez/obex/server/session6
    [22:22:75:C2:D2:72]#