I am a beginner in Android and testing Android code in which I am receiving and sending data through UART communication. Hardware for communication- MAX232 device which is connected to Raspberry Pi3 Model B and the other part of MAX232 is connected to Vending Machine Port(Rx,Tx,Gnd to communicate my android app with the Vending Machine). My communication breaks SPORADICALLY and then starts communicating. I do not know what the reason is If anyone can help me in this, please suggest. Or any other information will be needed,I will share
private static final String UART_DEVICE_NAME = "UART0"; // define in my code. **
I have to use ttyAMA0(PL011 UART) port because baudrate does not change with the core frequency like with ttyS0(MIniUART)
**
For example: If I send 100 commands one by one, I get 2-5 times this error.
**
> ERROR: Failed to open /dev/ttyAMA0: No such file or directory
**