Need an example in for IPCC communication Linux user application side
Hello,
I am trying to get familiar with vitualUart between A7 et M4 side.
The example OpenAMP_tty_Echo given in the wiki works well with my setup.
Next step i would like to replace the "echo "msg" > /dev/ttyRPMG0" terminal commands" by a C linux user space application by using Read/Write file operations.
Writing operations work OK but i am struggling to get the Echo with read operation.
No change made on the M4 echo example.
Below an extract of my GTK c program
When read operation is reached the program blocks despite the timeout settings.
But when I echo the M4 with a terminal M4 is still alive. And a very interresting thing is that this echo gives also the caracteres sent with my GTK c app.
I did not find any example on the web for this task.
Thank you by advance for any help.
Regard
serial_port = open("/dev/ttyRPMSG0", O_RDWR);
struct termios SerialPortSettings;
tcgetattr(serial_port, &SerialPortSettings);
SerialPortSettings.c_cc[VTIME] = 10;
write(serial_port, write_buffer, 5);
spleed(1);
read(serial_port, read_buffer, 5);
close(serial_port);
