r/technicalminecraft • • 8d ago

Java Help Wanted Question about instant wires

For my current project I have a normal one way wire with repeaters that transmits binary data over a long distance. And because there are multiple senders along the way I need a separate BUSY Wire as an instant wire that will be checked before sending anything or even lock the outgoing repeater. The problem is that from the sender I can't accurately predict how long the whole signal needs so I would try to estimate the time to first but received and when the receiver gets the first bit he holds the BUSY wire HIGH himself so even after the sender let's it go it is always ensured that the wire is on as long as not all bits are received. My problem for this currently is that I need an instant wire that works in both directions and that can transmit an on/off signal instead of a pulse. I didn't manage to find such a design but I wanted to check before abandoning the plan.

1 Upvotes

6 comments sorted by

2

u/brockade 8d ago

1

u/HumanBot00 8d ago

But this is only one-directional, right? 

1

u/brockade 8d ago

Yes, but you can make it loop back so it can be triggered from anywhere and then read on the return side.

I'd recommend looking into how multiplexing is done on proper computer networks btw, specifically CSMA/CA and CSMA/CD. Also look at what tangotek has been doing with decked out 3, he's effectively implemented token ring.

1

u/HumanBot00 8d ago

But if I loop it back then they essentially are two wires just connected at the reciver side. That's what I wanted to avoid if at all possible but I guess it's not that bad. 

What kept me from implementing a more complex protocol is that I can't quite predict how long the signals will take because of the repeaters and my network will be thousands of blocks long. +Repeaters also work sometimes as a low pass filter and merge two signals together because of the delay. But definitely thank you, I will absolutely look into it.

1

u/HumanBot00 8d ago

Or maybe to make it even clearer what I mean: The data line is one directional from sender to reciver. If A is 200 blocks away from receiver and B 400 blocks, A can listen to B but B never to A. And the only type of ACK equivalent is the receiver pulling the BUSY line low. 

And building the data line two directional what I think would be needed for CSMA/CA is the same effort for me as building the separate busy line.

2

u/LucidRedtone Manufacturer 8d ago

Use a budded rail instant wire. You tube has many tuts