Login
You're viewing the code4lib.social public feed.
  • Nov 24, 2026, 10:01 PM

    @twilliability is there a "direction" to the links between modules? Is there some constraints to topology (e.g. all modules are connected to some root module)?

    In case of the latter, I'd avoid any shared bus, and just have the modules talk through a single half-duplex TLL-level serial line. Using audio cables, that only needs 3 pins and should work up to a meter or so since audio cables are shielded.

    💬 1🔄 0⭐ 0

Replies

  • Nov 24, 2026, 10:02 PM

    @twilliability you'd have the "root" module ask its neighbors for who they are, after which each neighbor asks each of its neighbors who they are and forwards the responses to the root node. You need some mechanism to break cycles, for instance by the root pinning some timestamp to its enumeration request and every module only responding to one request on one port once.

    💬 1🔄 0⭐ 0
  • Nov 25, 2026, 7:31 AM

    @jaseg this is excellent! yes, the idea is to have a special module, which is the one relaying the current network info to the computer.

    propagating out from there and asking neighbors in turn, following a depth-first walk, sounds perfect.

    thank you!

    💬 0🔄 0⭐ 0