androidthings / sample-uartloopback

Echo received characters over a UART with Android Things
Apache License 2.0
78 stars 39 forks source link

Konwing that there is no more receiver of the data sent on UART #7

Closed mahermeg17 closed 6 years ago

mahermeg17 commented 6 years ago

Hi, How to know that I lost connection on the UART port? any event/listener to detect if there is no more receiver for the data sent on uart?

THX.

Fleker commented 6 years ago

By default, there's no way to know that you've disconnected on UART. Your application would need to implement some sort of ACK system, which is not a core feature of the UART protocol.