.NET Components for Mobility

IrDA Communication

Last post 07-11-2008 8:00 AM by alanjmcf. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 07-01-2008 6:53 AM

    IrDA Communication

    I have used compact framework standard functions (irdaClient and irdaListener) in C# to write a software to send and receive data over IrDA. I have no problem comunicating with another PDA which also runs the same software. However when I am trying to do the same with a non windows base device which uses OBEX protocol over IrDA, the PDA can not communicate with that device.

    How can I achieve communication between PDA and a non windows device which uses OBEX protocol over IrDA. I would very much appreciate it if you could send me a simple example. I am using C#.

     

     

     

     

     

  • 07-04-2008 5:19 AM In reply to

    Re: IrDA Communication

    You can use the ObexWebRequest class to send files to an OBEX server.  Or Andy's Brecham.Obex library () if you need more support including progress monitoring, GET, etc.  If you look at the user's guide document in the latest release one starts the ObexWebRequest with a URL like: "obex://11223344/file.txt", where 11223344 is the IrDA device address.

    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.
  • 07-04-2008 3:55 PM In reply to

    Re: IrDA Communication

    Thank you Alan, I will have a look at this.

    Do you know why the classes available in standard C# for windows mobile does not allow communication with a non windows device which uses IrDA obex protocol. I was under the impression that the PDA utilises IrDA using obex protocol.

  • 07-08-2008 2:58 PM In reply to

    Re: IrDA Communication

    They should do.  In fact the ObexWebRequest class uses the standard classes behind the scene, so it would be broken in that case too.  Unfortunately implementation quality of IrDA devices is a bit patchy, for instance almost everything I hear about the devices from MicroChip is bad, see various previous conversations in this forum for instance.

    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.
  • 07-10-2008 11:41 AM In reply to

    Re: IrDA Communication

    Could you please send me a piece of code in C# that can send as well as receive files using OBEX IrDA.

    It would be of great help to have a tested and tried piece of code which works. Using this I can hopefully find the problem in the system.

    I am using a WM device to send as well as receive files from an OBEX IrDA device.I would very much appreciate your help.

     

     

     

  • 07-11-2008 8:00 AM In reply to

    Re: IrDA Communication

    Well I use various applications on IrDA which work fine.  I don't have some code to hand at the moment, but ObexWebRequest and ObexListener work.  So if it doesn't work it's some fault of the devices.  Try with two Windows machines (even Win32 vs WindowsMobile).

    One way to get known good samples is to download Andy's Brecham.Obex library, http://32feet.net/forums/t/1482.aspx

    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.
Page 1 of 1 (6 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.