Open FilippoGas opened 3 years ago
if I understand the use case well, you should create two tty_fake connected to the same ttymux. One process per plug.
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
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
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
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?