@SHUBHAM-SINGH-RAO
you need to be more specific. But I can say with a high certainty that you're doing stuff wrong, or at the very least not what you want to do.
What is transferred via serial port?
Is it ascii characters representing hex values or can it be any arbitrary byte ?