Results 1 to 12 of 12

Thread: Need some help with com port reads

Threaded View

  1. #12
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Need some help with com port reads

    The problem I see looming is that in the cases where no CRLF is sent, you don't know when you've received everything, unless you know that after sending a particular 'command' you know how many bytes to expect back. Don't suppose the other end can be modified to always send a terminating CRLF can it? It would make life much simpler.

    EDIT: With respect to the 4 ESCs - I gather that you actually want to send as many as are required to get back to the main menu (?) If so, then you could go through a process like

    Do
    Send an ESC
    Loop until Device responds with Main Menu Or it times out
    Last edited by Doogle; Sep 22nd, 2012 at 03:35 AM.

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