.NET Components for Mobility

How upload file with BluetoothFTP?

Last post 09-27-2008 7:48 AM by Andy Hume. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-26-2008 9:41 AM

    • George
    • Top 75 Contributor
    • Joined on 07-22-2008
    • Posts 8

    How upload file with BluetoothFTP?

    How upload file with BluetoothFTP?

    Console.WriteLine("Commands:\n"
                    + "Q    Quit.\n"
                    + "\n"
                    + "D    Dir the folder Listing.\n"
                    + "L    Get the folder Listing.\n"
                    + "\n"
                    + "R    Reset to default folder.\n"
                    + "U    Up one folder level.\n"
                    + "C <name>   Change to folder with the given name.\n"
                    + "\n"
                    + "A    Get anonymous--no Name or Type.\n"
                    + "T <type>   Get by Type alone.\n"
                    + "N <name>   Get by Name.\n"
                    + "B <name> <type>   Get by both Name and Type.\n"
                    + "\n"
                    + "P <filename>   Put the given file.\n"
                    + "\n"
                    + "e.g.\n"
                    + "      cmd> c fooFolder\n"
                    + "      cmd> d\n"
                    + "      Downloading the folder listing.\n"
                    + "      ... ...\n"
                    + "      cmd> q\n"
                    + "      Quitting.\n"
                    );

    do not have upload? 

    Filed under: , ,
  • 09-26-2008 11:02 AM In reply to

    Re: How upload file with BluetoothFTP?

    In OBEX language upload is "PUT", mirroring HTTP's PUSH and PUT verbs.  I'll add the word "upload" to that help text. :-)

    Andy 

  • 09-26-2008 10:18 PM In reply to

    • George
    • Top 75 Contributor
    • Joined on 07-22-2008
    • Posts 8

    Re: How upload file with BluetoothFTP?

    I notice "PUT",but it seem to use "Object Push Protocol",not "File Transport Protocol",don't it?

    Thanks!

    Filed under:
  • 09-27-2008 7:48 AM In reply to

    Re: How upload file with BluetoothFTP?

    OBEX defines the operations: CONNECT, PUT, GET, SETPATH etc.  The services/profiles then define which of those operations must be supported.  The operations have the same formats and protocols regardless of the application[1].

    Note that the GetFolderListings application prompts at start-up whether to connect to the Folder-Browsing or Inbox service.  That simply sets what network endpoint to connect to[2], and what OBEX Target to CONNECT to.  After the connection is made there is absolutely no difference in the application's behaviour.  If one tries a GET on an default/inbox OBEX server the app+library will start the operation as normal but the server will likely just return an error code.

    Andy 

     

    [1] Folder-Browsing: "is built using OBEX PUT, GET and SETPATH commands as well as the OBEX Folder-Listing object.", whereas the Inbox service only needs to support CONNECT, PUT and DISCONNECT.

    [2] For IrDA, ServiceName "OBEX" is used for both.  For Bluetooth the two different UUIDs are used (in UUID16 form: 0x1105 and 0x1106).

Page 1 of 1 (4 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.