IR Command...

Hello, I need to make a program that receives a command from an infrared device... like a remote controller... is there any way of accomplish this can someone show me the way

thanks...



Answer this question

IR Command...

  • anisk

    Thanks!!! this is very helpfully for me...!!!


    cheers...

  • pdns

    Hi

    That depends on various aspects like the way the IR device transmits its data (Serial over IR, IrDA...), the Windows Mobile Device you're using.

    Windows Mobile (and the underlaying Windows CE OS) supports 3 ways to access the IR port:
    IrDA Sockets: a managed API is available in System.Net.Sockets.IrDAClient (System.Net.IrDA.dll)
    IrCOMM (COM emulation over IrDA): use the .NET CF 2.0 SerialPort class to use this techology
    More infos are available in the MSDN library under http://msdn2.microsoft.com/en-us/library/ms900378.aspx

    Propably your best option is to use 'Raw IR'. This will only work if the device exposes the IR as serial port.
    The .NET CF 2.0 SerialPort class is not capable of switching a serial port to IR mode. You have to use P/Invoke to call the Win32 APIs directly. You may need to disable the Windows Mobile option 'enable incomming beam'

    Find more infos here: http://msdn2.microsoft.com/en-us/library/ms900135.aspx

    Hope this helps
    Michael



  • IR Command...