GithubHelp home page GithubHelp logo

ttybus losing some bytes about ttybus HOT 3 OPEN

danielinux avatar danielinux commented on August 24, 2024
ttybus losing some bytes

from ttybus.

Comments (3)

leoheck avatar leoheck commented on August 24, 2024

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.

leoheck avatar leoheck commented on August 24, 2024

I was using the flag -o on tty_fake is it possible that this flag is causing this issue?

from ttybus.

leoheck avatar leoheck commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.