Hi,
Not sure if your project covers this use case, but I feel like it could - I just can't quite figure out how. In my application I need to forward (and modify) traffic between an application that expects to open a physical port (or descriptor), and the actually existing port. The default topology looks like this:
- App opens existing /dev/ttyX.
What I did:
- Create port pair that echoes between them
- App opens one virtual serial port <-> Python opens the other virtual port, then processes traffic -> Python sends to existing /dev/ttyX.
What I'm wondering: Can this library help remove one of the two virtual ports and just do this:
- App opens -> Python virtual serial port, process traffic -> Python sends to existing /dev/ttyX/.
If I use this library to create one /dev/pts0, how do I interact with it from within Python? That part is unclear to me.
Hi,
Not sure if your project covers this use case, but I feel like it could - I just can't quite figure out how. In my application I need to forward (and modify) traffic between an application that expects to open a physical port (or descriptor), and the actually existing port. The default topology looks like this:
What I did:
What I'm wondering: Can this library help remove one of the two virtual ports and just do this:
If I use this library to create one /dev/pts0, how do I interact with it from within Python? That part is unclear to me.