.NET Components for Mobility

File transfer via IrDA

Last post 06-06-2008 1:59 AM by deepanshu.gupt. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-30-2008 6:22 AM

    File transfer via IrDA

     i need to know

    how can we discover IR activated devices and how can we transfer files from PC to mobile  using vb.net

  • 06-01-2008 10:48 AM In reply to

    Re: File transfer via IrDA

    Sure IrDAClient.DiscoverDevices, then use ObexWebRequest., the URL for it contains irdaAddr.ToString() as the host part.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-05-2008 8:14 AM In reply to

    Re: File transfer via IrDA

     First of all, thank you for responding of my post

     

    IrDAClient.DiscoverDevices is working fine
    And gives device name device address and device
    Hints

    But still some confusion regarding sending file from desktop to mobile. how can we connect device and how can we send file 


  • 06-05-2008 9:20 PM In reply to

    Re: File transfer via IrDA

    Cool.

    Well, see the samples in the user guide.  The URI format is also described in the class documentation:

    Uri must use one of the following schemes - obex, obex-push, obex-ftp, obex-sync. The host name must be the device address in short hex, or dotted hex notation ...

    So, something like:

    IrDAClient cli = new IrDAClient();
    IrDADeviceInfo[ discovered = cli.DiscoverDevices();
    IrDADeviceInfo selected = f(discovered); // method 'f' has the user select a device, or just #0 (of 1 in total?!)
    String uri = "obex://" + selected.DeviceAddress.ToString() + "/" + filenameWithoutPath;
    ObexWebRequest req = new ObexWebRequest(new Uri(uri));
    ...
    ...

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-06-2008 1:59 AM In reply to

    Re: File transfer via IrDA

    Thanks now program is working fine :)

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