I have two devices(Master and Slave), Communication between the device is UART protocol. When ever master send commands to slave then slave will respond. When ever slave get a request then slave will respond to master. If somebody sniffed the channel and get the transmitted data(master to slave) then he can send the same request to slave, slave also will respond for unauthorized master. so that my slave is misused by unauthorized master. I should avoid this. How can i make my slave to respond to only authorized master. If any command is sent from unauthorized master then slave should not respond.
Awaiting for your reply.