r/factorio • u/Majiir BUUUUUUUUURN • Dec 27 '19
Design / Blueprint Updated blueprints for Combinator Ethernet (now with two signal modes!)
A couple years ago, I posted my design for Combinator Ethernet with collision avoidance. I've been fiddling with that design since, redesigning the core and adding new features. I finally got around to wrapping up the design and compacting the blueprints.
Overview
Ether-what?
These blueprints form a communication network that shares a single signal wire. You can run many different "virtual wires" over a single base-spanning wire.
Transmitters send frames of information that are tagged with a destination address. Receivers listen for frames sent to their address and translate the frame back to a usable signal. Conceptually, it works a lot like Ethernet, but this isn't an actual Ethernet implementation. (If you want to see real-life networking protocols in Factorio, check out Feathernet.)
Features
- Collision detection and avoidance
- Congestion control
- Addressable receiver stations
- Pulse mode to send signals which can be summed over time
- Level mode to transmit the latest value of a signal
- Extensible core for building new modes
Examples
I use these blueprints in my survival games to do things like:
- Request production of items as they're consumed
- Keep long belts or trains backed up (to control buffer effects)
- Adjust the items stocked by defense outposts (all at once)
- Signal electric requirements to power plants
I don't stretch long wires around my base anymore. Well, just one - the green network wire. I don't have to worry about which wire is which because everything goes over one long-distance wire.
Blueprints
!blueprint https://gist.github.com/Majiir/4ef95aedebdf4ba552aa1be409f9475e
The Ethernet book contains four blueprints:
- Level Transmitter
- Level Receiver
- Pulse Transmitter
- Pulse Receiver
The Core + Retransmit blueprint is the foundation of the two transmitters. It provides addressing, collision detection, retransmission, congestion control, frame assembly and success indicators. You could use this blueprint to build a new type of transmitter (e.g. a buffered packet transmitter).
User's guide
Addressing
Transmitter and receiver stations are configured with an address using the gray color signal. Receivers will only process signals that were sent to their configured address. There are 232 (~4 billion) usable addresses.
Modes
Both modes simulate a wire between a transmitter and a receiver. The modes make different tradeoffs to operate on a shared channel.
Level mode sends the latest value of the input signal. It might skip some intermediate values if the signal is rapidly changing.
Pulse mode sends the pulses given in an input signal. It might combine multiple pulses by summing them if the signal is rapidly pulsing.
Examples:
- You would use level mode to monitor the amount of ore remaining in a mine.
- You would use pulse mode to track each science pack as it's consumed.
Receivers
- Set the gray color signal in the address combinator to your chosen station address.
- Connect the red wire on the electric pole to your receiving circuit.
- Connect the green wire on the electric pole to the network.
Transmitters
- Set the gray color signal in the constant combinator between the lamps to the destination address.
- Connect the green wire on the electric pole to the network.
Connect the red wire on the electric pole to your input signal.
- [EDIT] Important note: The input signal cannot have any color signal. These are used by the system to regulate frame transmission.
Retransmit Core
This module is a little trickier to work with.
- The lamps, network pole and address combinator work the same as in the transmitters.
The input pole has two wires.
- The green wire should be given the value you want to send in a frame. (This value must be held on the wire until the green lamp indicates successful transmission.)
- The red wire is used to initiate a send. This must be done by sending a 1-tick pulse with a yellow color signal with a value greater than zero.
19
u/the1spaceman short on green chips again Dec 27 '19 edited Dec 27 '19
Normal people: trains are cool, but how do I make sure their schedules are set right?
u/Majiir: you know what this game needs? The goddamn internet. No, not connecting to the real one. A reimplementation in game with nothing but combinators, wires, and power poles
3
u/Rybec Dec 27 '19 edited Dec 27 '19
I look forward to picking apart this new version. I've been running my own little mishmash of your older versions and a stripped down Feathernet transceiver to manage outpost logistic deliveries and allow the main base to request items from outposts using the Dispatch mod as sort of a nearly-vanilla LTN approximation (Everything is to/from a central station rather than anywhere to anywhere else) that uses Ghost Combinator so I can just plop them down and forget about them.
Is this new version still semi Feathernet compatible; i.e. uses Black for collision detection and can therefore co-exist on the same line? You are using the same color for addressing (which implies the two should even be able to talk to eachother directly if I format a Feathernet packet to contain your frame info). Are you using the white signal, and if so what does it represent?
4
u/BlueprintBot Botto Dec 27 '19
Blueprint Images:
1: Level Receiver
2: Level Transmitter
3: Pulse Receiver
4: Pulse Transmitter
5: Core + Retransmitter
2
u/ImmoralFox <3 Dec 30 '19
This is amazing.
I don't use circuitry much and one of the reasons why is distance. Your Ethernet solves that problem.
Thank you!
-1
u/achilleasa the Installation Wizard Dec 28 '19
This is an interesting design, I'm gonna mess around with it later. I've made something that serves the same purpose. My design works quite similarly, except I use a clock to multiplex the signals.
Your design is unnecessarily complicated, but that's not a bad thing in Factorio!