How to communicate with pty through minicom or screen?

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

Now I can talk to the server as expected, with a client application that opens the slave and communicates using read () and write () calls.

However, I would also like to be able to use either a screen command or a minicomputer to manually issue commands to the slave. However, when trying to do this, the server never receives any data. Is there something significant that I do not see with this approach?

+2


a source to share


1 answer


So, the client application works with the hardware, but minicom doesn't. It is very likely that the client application will correctly configure the baud rate and number of stop bits (at least those), and you haven't asked minicom to do the same. You need to get these settings right.



0


a source







All Articles