Thread: Remote control trough COM port.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    I meant the receiver....but now that I've read the WinLirc website and source code, I've awnsered my own question.

    Take a look at the WinLirc source code and see how it works.

    In short, it monitors changes to the DCD line using SetCommMask(EV_RLSD).

    gg

  2. #2
    Registered User
    Join Date
    Nov 2004
    Posts
    20
    >>Take a look at the WinLirc source code and see how it works.
    I realized that the winlirc code has to hold the answer, so I have already read the source. And I found out that winlirc does'nt use ReadFile(). It does as you said it uses WaitCommEvent() and measure the time between each trigger from EV_RLSD.
    I'm trying to implement a similary approach.
    No wonder I could'nt get ReadFile() to retrieve data.

    Thanks for all the help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. Which port used MS Win XP remote control?
    By gicio in forum Tech Board
    Replies: 0
    Last Post: 10-23-2002, 08:45 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM