Results 1 to 3 of 3

Thread: input from serial port

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2005
    Posts
    103

    Question input from serial port

    if i sent a byte to the serial port and i need to test if that byte got to the serial port how can i do it>?

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Nov 2005
    Posts
    103

    Re: input from serial port

    in fact i m using
    Text2.Text = MSComm1.OutBufferCount

    but it is always returning 0

    what can be wrong with the code?

  3. #3
    Fanatic Member namrekka's Avatar
    Join Date
    Feb 2005
    Location
    Netherlands
    Posts
    639

    Re: input from serial port

    If it returns "0" then the bytes where send and the buffer is empty now. However it will not say that your receiver did receive it! If you have 2 comports on your PC just connect them to each other with a "0-modem" (wires are crossed) cable. Listen on the other port with a terminal program.

Posting Permissions

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



Click Here to Expand Forum to Full Width