Is there a way for two C++ applications to send/receive message to/from each other by under same host machine using serial communication ? p/s: I am having a Linux-based environment
Asked
Active
Viewed 66 times
0
-
1Do you mean COM port serial or just serial as in a stream of bytes? For a stream of bytes look into Pipes. – Richard Critten Jul 10 '21 at 09:26
-
Have you tried `termios`? – Antonio Jul 10 '21 at 11:24
-
@RichardCritten yes COM port serial – Dave Jul 10 '21 at 13:20
-
@Antonio I haven't. I have had a quick search over the Internet and yes I saw some ppl are using termios. Probably I should start looking at this – Dave Jul 10 '21 at 13:21
-
[This post](https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux) may be of some help. Specifically the [most upvoted answer](https://stackoverflow.com/questions/52187/virtual-serial-port-for-linux/19733677#19733677). – G.M. Jul 10 '21 at 13:28