Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage on simulated serial device #8

Open
FilippoGas opened this issue Mar 3, 2021 · 4 comments
Open

Usage on simulated serial device #8

FilippoGas opened this issue Mar 3, 2021 · 4 comments

Comments

@FilippoGas
Copy link

First of all thank you for this tool, I'm trying to use it on a simulated serial device, that writes on /dev/ptmx and output in a pseudoterminal /dev/pts/[number], and I'd like to be able to read this device from multiple processes but when i link the real device to the fake tty the simulated devices just stop. could this be because of the original port being a simulated device and not a real device?

@danielinux
Copy link
Owner

if I understand the use case well, you should create two tty_fake connected to the same ttymux. One process per plug.

@FilippoGas
Copy link
Author

that's what i'm trying to do, but as soon as I attach the tty_fake the device simulator crashes, i'll try using the physical device instead of the simulator. The devices i'm talking about is a GPS that sand serial data via serial port, and to thest the code without the GPS board i've created this simulator

@danielinux
Copy link
Owner

Hello @FilippoGas - I have recently merged a bunch of contributions from different authors. Could you please check if the latest master fixes the issue for you?
Thanks in advance,

--
d

@FilippoGas
Copy link
Author

Hi @danielinux, the problem I had is now fixed but i noticed something else, when I have only one application reading from a fake device everything works well, but as soon as another application start reading from another fake device connected to the same bus, both application receive a reduced amount of data, compared to the readings with one application only, it's like the two applications are not seeing the same data stream, but some data goes to application 1 and not to application 2 and vice-versa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants