Hi!
I'm going to make some serial programming and I need some advice.
I've succesfully connected with my device and I get the expected answers
from it so I know how to speak with my serial friend.
This is what want to.
The end user enters some settings for the serial device in an editfield
and press a button to send it to the serial device.
I know that the device will confirm a request within 700 ms if it
understands the request. Otherwise it will just ignore it. It will only be
a confirmation that it received a request not a confirmation that the
device acted upon the request.
So now I want automatically to send another request to the serial device
"Hi buddy how are your settings now?" And again I know he will answer
within 700 ms. I will update the editfield with these settings (they
should hopefully be the same as the end user entered) and then give the
end user some visual clue that everything is OK. Like turning some button
in my interface green.
On a time line it would be
send request--->wait 700 ms or less for confirmation of
request and receive confirmation--->automatically send request for
settings--->wait 700 ms or less and receive updated settings, update
editfield and user interface.
My problem is that I don't really understand the polling thing. What is
going on when I poll?
Should I open the serial control and have it open for 700 ms to receive my
answer in the dataAvailable event and close it again or can I use polling.
Best regards
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|