Code Monkey home page Code Monkey logo

Comments (4)

WillCodeForCats avatar WillCodeForCats commented on August 11, 2024

I will look into it. I normally use Perle serial servers.

I almost think you should move most of the packetserve code into the main plugin (the tekmar specific stuff: byte stuffing, escaping, packetizing, etc), and just have packetserv essentially be a dumb serial-to-ethernet device like the one I bought above. Users could use packetserve for non-Tekmar RS232/485 devices, and purchasers of serial-to-ethernet devices could avoid needing to install that add-on entirely. (just a thought)

There are already other projects out there that do dumb serial to Ethernet stuff, so duplicating that work is not something I'd care to do. At the moment I prefer to follow the model that Z-Wave JS has taken: an integration for HA core with an add-on to interface with the hardware.

In its current state it also works with one-to-many applications: multiple integrations can connect to a single tekmar-packetserv simultaneously. That would not be possible if packet processing was moved into the integration.

from tekmar-packetserv.

jamestalmage avatar jamestalmage commented on August 11, 2024

In its current state it also works with one-to-many applications: multiple integrations can connect to a single tekmar-packetserv simultaneously. That would not be possible if packet processing was moved into the integration.

A fair point. The USR device has settings for max connected clients, and a checkbox for whether new connections should boot off old connections. No explanation for how it handles data flow for multiple connected clients. I assume it mirrors data from the serial bus to all connected, and queues writes based on TCP packet boundaries.... But that's a big assumption

from tekmar-packetserv.

WillCodeForCats avatar WillCodeForCats commented on August 11, 2024

Yeah but that's very device-specific, and how your device handles it isn't necessarily how mine will or any other number of random ones out there someone might want to use. And I don't really have any desire to make some elaborate system to try and arbitrate all the different possibilities when how it's currently designed has been stable and reliable.

from tekmar-packetserv.

WillCodeForCats avatar WillCodeForCats commented on August 11, 2024

Added in version 1.2.0

from tekmar-packetserv.

Related Issues (1)

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.