cmdolcet
asked on
Best way to handle data being sent over a serial COM
what is the best way to handle data that is being sent over from a Serial COM.
Is there a property that I can reference in the COM control class that can check it for me. I do have a checksum to the device.
I was thinking of a try catch finally statement to add however not sure what property to look for in the COM control.
Thanks,
Is there a property that I can reference in the COM control class that can check it for me. I do have a checksum to the device.
I was thinking of a try catch finally statement to add however not sure what property to look for in the COM control.
Thanks,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No. "High level" means that in the transmitted data contains an checksum. So the questions are: What device is it? And what does the manual says about this?
ASKER
The device will send back a NAK or ACK if the command has been accepted then I guess that would answer my question. Would that be the best way to handle things, is listen back for the reply and then make a decision to send again if a NAK occurs?
Thanks,
Thanks,
Yup. Send your command. Then wait for an answer..
ASKER
Try Catch statements?