Closed Thread
Results 1 to 2 of 2

Thread: serial port problem

  1. #1
    mld
    mld is offline Newbie
    Join Date
    Aug 2008
    Posts
    1
    Rep Power
    0

    serial port problem

    Hi all

    i have spent my last three weeks try to read an infrared remote signal from my serial port

    and in alll the three weeks i have faild to have a usefull read

    but today

    and i dont know why

    i have suceeded to read using a code i have writen before but with a small modification

    and it goes really nice and work 100% ... eeeeeeven i put the following


    Code:
    .
    .
    .
    var
    
    zeroone : boolean
    
    NumRead : integer;
    .
    .
    .
    ReadFile( FHandle, zeroone , 1, NumRead, nil )
    
    showMessage(inttostr(integer(zeroone))); ///  output is 45

    even its strange to give me such thing from a boolean variable ...

    but this is not my problem

    my problem is i have saved my work ... close the delphi ... and re-open it ...test another time the application and every thing is okay

    but after a while

    i wanted to re-check the application ... i opened it ... lunch the exe file and the same previous problem

    i just read 0000000000

    nothing else

    i have changed from boolean to integer ... or to char ... or to any thing else

    and the same

    just read 00000000

    why is that

    plz

    plz plz plz

    tell me what to do .... or why this is hapening to me

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: serial port problem

    I can't say for sure, but IR signals can be VERY flaky sometimes. Depending on the source/receiver, it can be nearly impossible to get them lined up for communication.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. General Serial Port
    By mebob in forum Assembly
    Replies: 11
    Last Post: 12-16-2010, 03:08 PM
  2. serial port problem
    By sandro76 in forum C and C++
    Replies: 3
    Last Post: 12-17-2009, 05:17 AM
  3. serial port problems
    By infineonintern in forum C and C++
    Replies: 0
    Last Post: 06-01-2009, 08:48 PM
  4. Serial Port Close Problem in Pocket PC
    By HosseinSadeghi in forum C# Programming
    Replies: 0
    Last Post: 07-13-2007, 11:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts