How to send files from gateway to host and vice versa using OBEX protocol

Version 1

    Case Description: How to send files from gateway to host and vice versa using OBEX protocol

    ============================================================================

     

    Please find the below steps for sending and downloading file between Intel IoT gateway and host machine using obex ftp.

     

    Obex_test is an old tool and it doesn't handle all the situation correctly so here I am describing a method how to transfer files using obex_ftp.

     

    Uploading file from Gateway to host

    ==============================

     

    Pre-requisite

    ============

    1. Download the rpm packages manually from your laptop (https://www.rpmfind.net/linux/rpm2html/search.php?query=obexftp)

    a. obexftp-0.19-3.el4.rf.i386.rpm

    b. libobexftp-0.19-3.el4.rf.i386.rpm

     

    Steps to follow:-

    ===============

    1. Boot the gateway and login using the credentials

    2. mkdir test

    3. cp obexftp-0.19-3.el4.rf.i386.rpm test/

    4. cp libobexftp-0.19-3.el4.rf.i386.rpm test/

    5. cd test/

    6. rpm2cpio obexftp-0.19-3.el4.rf.i386.rpm | cpio -idmv

    7. rpm2cpio libobexftp-0.19-3.el4.rf.i386.rpm | cpio -idmv

    8. cd usr/lib/

    9. cp -r lib* /usr/lib/

    10. ln -sf /usr/lib/libbfb.so.0.0.4 /usr/lib//libbfb.so.0

    11. ln -sf /usr/lib/libmulticobex.so.1.0.0 /usr/lib/libmulticobex.so.1

    12. cd ../../

    13. cp usr/bin/obexftp /usr/bin/

    14. Try to transfer the file using the obexftp command:

        "obexftp -b <mac address_PC> -p <file>"

     

    Downloading file from host to gateway

    =================================

     

    1.Boot the gateway and login using the credentials

    2. hcitool scan(find the host mac address)

    3. obexftp -b <mac address_host> -g <file>

     

    For more information type obexftp --help

     

    Last Validated Info:

    ================

    Device  :    DK100 Intel Iot Gateway

    OS         :    WindriverIDP XT3.1

    Version:    RCPL_20