Skip to content

Allow real/external ports to be used in the group of ports #4

@rsend

Description

@rsend

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions