How communicate with pty via minicom or screen?


How communicate with pty via minicom or screen?



I am trying to provide an AT/Modem-like interface around some hardware. Follwing this post I have the server setting up a pty using openpty().

Now I can communicate with the server as expected with a client app that open the slave and communicates via read() and write() calls.

However I would also like to be able to use either the screen command or minicom to issue commands by hand to the slave. However the server never seems to receive any data when trying to do this. Is there something significant I am missing with this approach?




Can read(2) return zero when not at EOF?

1:



TEvent.WaitFor in Kylix
So the client app works with the hardware, but minicom does not.


How to create a new Linux kernel scheduler
Very likely the client app is properly setting the baud rate and number of stop bits (at least those), and you haven't asked minicom to do the same.


How can I implement an bad list in a WebService using PHP
You need to get those settings right..
Difference between libcurl and libsoup [closed]


Talk to VM through host operating system


68 out of 100 based on 53 user ratings 928 reviews