Giter Site home page Giter Site logo

Comments (14)

adigyran avatar adigyran commented on May 10, 2024

maybe make it togglable? To not constantly monitor serial devices?

from slimevr-server.

adigyran avatar adigyran commented on May 10, 2024

oh, i actually want to implement that

from slimevr-server.

unlogisch04 avatar unlogisch04 commented on May 10, 2024

How should we identify the tracker?
The serial port itself does not have any standard to identify a device. We don't want to mess with existing serial ports.

I would recommend the following procedure:

  1. Open a Configuration mode.
  2. Get all serial ports
  3. Monitor for new Serial Ports
  4. Tell the user to connect the trackers
  5. Handshake,...

The following might to be considered:

  1. D1 Mini and Most ESP Dev boards use RTS and DTR to Reset or Flash. On some boards they are high on other low. So for DIY the should be able to be changed.

from slimevr-server.

Eirenliel avatar Eirenliel commented on May 10, 2024

there is a serial command GET INFO that tracker should reply with info about itself

from slimevr-server.

unlogisch04 avatar unlogisch04 commented on May 10, 2024

Well what i wanted to say:
"I'm against sending any Serial Port some characters, without you knowing what it is for."
It can be a old UPS, some other DIY hardware, ...
If we have a other possibility to identify it, like USB native it would be great.

from slimevr-server.

Eirenliel avatar Eirenliel commented on May 10, 2024

Then we can wait a few seconds until periodical status message.

from slimevr-server.

Eirenliel avatar Eirenliel commented on May 10, 2024

Improve USB and Serial Interface

from slimevr-server.

unlogisch04 avatar unlogisch04 commented on May 10, 2024

Just for clarification, are your ok with this approach?
I would recommend the following procedure:

  1. Open a Configuration mode.
  2. Get all serial ports
  3. Tell the user to connect the trackers
  4. Monitor for new USB Serial Ports
  5. Open the new found USB Serial Port
  6. Wait for a defined String OR send a String (like GET INFO\n)

from slimevr-server.

Eirenliel avatar Eirenliel commented on May 10, 2024

I think that new serial devices should always be monitored and automatically connected. If user is not on the Add new tracker screen, they should get a pop up of sorts.

from slimevr-server.

unlogisch04 avatar unlogisch04 commented on May 10, 2024

How often will you connect your tracker to the USB Port to change the configuration?
Once its configured to your network, you will change everything else over the Setting in the Server.
The only reason to connect it to a USB is Charging, WiFi Change, Firmware Update (DIY, not Production)

From looking at the USB Device i have no possibility to know what it is. (i see only a USB to Serial port, with some name)

  • If i open it as a serial port, i might reboot a diy 3d printer, or something else.
  • If the port is open no other application can access it.

I think the risk of not happy user is too big against the benefit.

from slimevr-server.

Eirenliel avatar Eirenliel commented on May 10, 2024

That's fair. Let's make it work only on the Add tracker page.

from slimevr-server.

Kamilake avatar Kamilake commented on May 10, 2024
  • If i open it as a serial port, i might reboot a diy 3d printer, or something else.
  • If the port is open no other application can access it.

That's why I hate cura. That hogs all the com ports and doesn't let go.
My opinion: Exclusive all COMs first -> Make sure that is tracker -> Release the other friends

from slimevr-server.

ButterscotchV avatar ButterscotchV commented on May 10, 2024
  • Figure out if the connedted device is indeed a SlimeVR tracker
  • Make a pop-up that a tracker is connected with suggestion to user to configure it

These two points have been resolved by #312.

from slimevr-server.

TheButlah avatar TheButlah commented on May 10, 2024

@Eirenliel I believe these are all done. Feel free to reopen if not.

from slimevr-server.

Related Issues (20)

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.