How do I know that data has written successfully on port. Is there any way out to confirm.

TIA
Ddeveloper