Comments (3)
Found this:
➜ ls -ltr /dev/ttyGNSS*
srwxrwxrwx 1 root root 0 Nov 12 11:17 /dev/ttyGNSS_mux
lrwxrwxrwx 1 root root 10 Nov 12 11:17 /dev/ttyGNSS_fake_a.bak -> /dev/pts/0
lrwxrwxrwx 1 root root 10 Nov 12 11:17 /dev/ttyGNSS_fake_b -> /dev/pts/1
lrwxrwxrwx 1 root root 10 Nov 12 19:15 /dev/ttyGNSS_fake_a -> /dev/pts/1 <== this should not be /1
As I could understand, my main service that creates the /dev/ttyGNSS_mux
and also the ones that create /dev/ttyGNSS_fake_a
and /dev/ttyGNSS_fake_b
started fine at 11h17.
For some reason, the service that creates /dev/ttyGNSS_fake_a
had to restart and then ended up using the same device (/dev/pts/1
) that /dev/ttyGNSS_fake_a
was already using.
I am not sure if this is caused by the way I use ttybus, but I am sharing this here to follow the discussions.
I am using it this way:
# Service 1
tty_bus -d -s /dev/ttyGNSS_mux
tty_attach -s /dev/ttyGNSS_mux /dev/ttyUSB0
# Sevice 2
tty_fake -o -s /dev/ttyGNSS_mux /dev/ttyGNSS_fake_a &
# Sevice 3
tty_fake -o -s /dev/ttyGNSS_mux /dev/ttyGNSS_fake_b &
from ttybus.
I was using the flag -o
on tty_fake
is it possible that this flag is causing this issue?
from ttybus.
Removing this -o
definitely improved.y system since there is no duplicated devices being created. But I still have issues after a couple of ours with the bytes being lose.
Is there any way to monitor the created socket? I could not find any tool for that, just the ss
but os doesn't show anything that helps me here.
from ttybus.
Related Issues (12)
- How to install and use on linux?
- Problem reading from one serial device with two apps HOT 6
- Full duplex communications
- Feature Request: Force a tty_fake to be 'read only'
- Documentation: Explain "non-reliable" in README.md HOT 5
- Losing data HOT 1
- Cannot get the right PID from tty_fake HOT 2
- fix for vmware VMs HOT 1
- Usage Problems HOT 1
- Usage on simulated serial device HOT 4
- tty_fake not working after disconnecting and reconnecting to fake serial port HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttybus.