Transmit signal wirelessly over railway

Smart setups of railway stations, intelligent routing, solutions to complex train-routing problems.
Please provide - only if it makes sense of course - a blueprint of your creation.
adam_bise
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Transmit signal wirelessly over railway

Post by adam_bise »

The concept is to use the fact that trains can detect disabled rail station anywhere it can route in order to transmit a long range signal over the railway.

Connect 1 or more pairs of rail segments to your extended railway. Multiple pairs can be used to send a binary number.

The transmitter station is disabled by default. A local signal enables the stop to send 1 bit of data.

The receiving station has a train set to go back and forth between the pair with no wait, and sits at it's station until the transmit station is enabled. Then it goes a small way and stops at a permanently closed rail signal. The receive station sends its train ID to a not gate, and then a flip-flop to toggle a binary signal depending on whether a train ID is read. Once the signal is received, a reset signal can be used to clear the data.
railnet.png
railnet.png (1.18 MiB) Viewed 7371 times

Code: Select all

0eNrtXduO20gO/Rc9twMV66JSY3aBmUlm8ryvi4XhdqsTAW7bkOVggqA/YD9kf2y/ZOVruyWWzFMj2MZOv6Th2D6myMMii0VRP5KH2bpYVuW8Tu5/JOV0MV8l9//8kazKL/PJbPN/9fdlkdwnZV08J3fJfPK8eVVNylnycpeU88fij+RevfzrLinmdVmXxe772xffx/P180NRNR84fnMyna6f17NJvagauOVi1XxnMd/8UIMzUs0Hvzd/df7yctdBoSPKajGbVKPlZF7MWJQPdo/jPlgOSb8iPU9ms1ExK6Z1VU5Hy8WsYBDzI2DGAxoQ8FVC3wDeJY3i5803yq3+fyRq809VPJ7qsmxeuZOf3rymRl/Tspquy3r7ujHECyeeBcWjN9crFi87Ix4FxHOYeBSnPNOSzrel1TJlZpi0Kk6XtiVdfkbakG49Jq0bhpgqbYtrZcrNMXHtMERV6oy4Ie2qFCRDGqffNlcVtQXOZPpVChM4j1Nwm61Kn5E3qGACFWziFNwhrGovF5QLNQwGF6XjVNzhrLJnJA7qGIxeykfquE1a1V42tDCeKTCgqSxSx23aquyMxEEdozEuMsh1aKvaS4cWhjkFxjmKDHQd2qr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Dpg2B34beuY1ARMjXS8HDDKK/IIc+P3WOJBhHLBtDvw+9IRtgqd0hjjgkMHnF+TA51vjgMc44Noc+Dz0PG+S9ypTb0Z40p58UHjv86RGx9tGdSY8fXoqZ3VRrbZqQisD6739y/lj8ce+RozuK1oYBGF8ZDE0hPGJxTAQxmcWY/tQznI1XhwYDhcvWE7ETrfZU0L8yJv284UbNnYeCp4Gn8mdRs5DAaVs9NSSyZmOlOEnh6u4GRqgkL7zNHXnOkIGz0w9xQ1eQIVUHSG79tZBIXXk3fqolF1Wdh9Vb4JSmsj7u1EpdUfKjtzeBqW0kXcEo1J2PCXr+o4LSgnemkCxzmM7Uu5k2iyudfHc/P7DbF0sq7JZfe+Sb00w28U7n1FD6jxtVP/yP+34Osc=
For example, a remote site circuit network has a bullets signal that goes below a threshold and then enables the sites supply station, and bullet order transmit station. A far away bullet producing factory reads the order via its bullet order receive station, and a circuit condition wait rule is satisfied at the sites delivery station, sending the bullet delivery train to any enabled site supply stops in its schedule.

To try out the blueprint, build 2 way locos on the receiving stations, set their route to that digits transmit / receive pair "station 1, no wait > station A, no wait" and so on

Turn on the constant combinator at the transmit end to emulate a signal. Once your done with the signal on the receiving end, turn on the constant combinator on the reset line to issue a data reset.
User avatar
Lav
Filter Inserter
Filter Inserter
Posts: 384
Joined: Mon Mar 27, 2017 10:12 am
Contact:

Re: Transmit signal wirelessly over railway

Post by Lav »

Great minds think alike. :-)

viewtopic.php?f=194&t=48918
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Transmit signal wirelessly over railway

Post by eradicator »

I don't usually do circuits so i don't know how accurate this is, someone will have to measure.

Both of you for some reason seem to use trains that actually move. I did a quick test and it is quite simple to remove the movement, thus needing no signal buffers and being able to transfer a "live" signal. This can be achieved by either not giving the train any fuel, or placing a circuit-closed signal directly in front of it. I use a train with no conditions for both stations

Here's a simple 1(?)-tick-clock with flickering lamp:
railwire.jpg
railwire.jpg (324.71 KiB) Viewed 7202 times
Blueprint
Edit:
Used game.speed = 0.01 to do the measurement myself.
Conclusion: A train takes a minimum of 3 ticks to update the signal for a 3-tick-clock:
Tick 1: Go towards Reciever
Tick 2: Arrive at Reciever
Tick 3: Attempt to go to Sender
Tick 4: Go towards Reciever (looped)
wire.gif
wire.gif (481.34 KiB) Viewed 7199 times
Edit2:
Oh, and btw, the station names are wrong. Send/Recieved are inversed in the gif.
Last edited by eradicator on Mon Jun 25, 2018 4:05 pm, edited 1 time in total.
User avatar
Lav
Filter Inserter
Filter Inserter
Posts: 384
Joined: Mon Mar 27, 2017 10:12 am
Contact:

Re: Transmit signal wirelessly over railway

Post by Lav »

Huh. I didn't consider that. That's actually great! :-)
adam_bise
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Transmit signal wirelessly over railway

Post by adam_bise »

Lav wrote:Great minds think alike. :-)

viewtopic.php?f=194&t=48918
Cool! Back in 2017 even. I wondered if anyone else had tried it.

I've built a switchboard of sorts, so that the decoders don't have to be built at each remote station.
switchboard.png
switchboard.png (1.55 MiB) Viewed 7169 times
Here are some blueprints I've been working on:

Switchboard segment:


Encoder: This takes signals that meet their condition and prioritizes them for transmit, and then converts them to binary using a list of binary codes I created for each signal.


Decoder: A pair of decoders for my switchboard, one with red wire, one with green. Converts the 8 bit binary from the trains to a decimal and then changes them back to their original signal with a value of 1.



I use this blueprint to enable the remote site's general imports station: I have those stations set to enable / disable on green >=1, send to train, so the schedule can read and know when to stop unloading, and read train ID to signal R which resets the green signal when the unloading train leaves. This way the station is enabled when a supply is needed (signal floor), and remains enabled until the site is restocked (signal ceiling)



Now I'm trying to create an array for decoding, rather than one decider per signal type per station, same for encoding.

@eradicator that is awesome! I never would have thought a train with no fuel would be read by the station. When I tried to put the signals too close, the train moved at a snails pace before stopping and actually took longer. I will try even closer or removing the fuel.

Here is an 8 bit binary signal index if anyone is interested:

Code: Select all

00000001 Wooden Chest
00000010 Iron Chest
00000011 Steel Chest
00000100 Storage Tank
00000101 Transport Belt
00000110 Fast Transport Belt
00000111 Express Transport Belt
00001000 Underground Belt
00001001 Fast Underground Belt
00001010 Express Underground Belt
00001011 Splitter
00001100 Fast Splitter
00001101 Express Splitter
00001110 Burner Inserter
00001111 Inserter
00010000 Long Handed Inserter
00010001 Fast Inserter
00010010 Filter Inserter
00010011 Stack Inserter
00010100 Stack Filter Inserter
00010101 Small Electric Pole
00010110 Medium Electric Pole
00010111 Big Electric Pole
00011000 Substation
00011001 Pipe
00011010 Pipe To Ground
00011011 Pump
00011100 Straight Rail
00011101 Train Stop
00011110 Rail Signal
00011111 Rail Chain Signal
00100000 Locomotive
00100001 Cargo Wagon
00100010 Fluid Wagon
00100011 Artillery Wagon
00100100 Car
00100101 Tank
00100110 Logistic Robot
00100111 Construction Robot
00101000 Active Provider Chest
00101001 Passive Provider Chest
00101010 Storage Chest
00101011 Buffer Chest
00101100 Requester Chest
00101101 Roboport
00101110 Lamp
00101111 Red Wire
00110000 Green Wire
00110001 Arithmetic Combinator
00110010 Decider Combinator
00110011 Constant Combinator
00110100 Power Switch
00110101 Programmable Speaker
00110110 Stone Brick
00110111 Concrete
00111000 Hazard Concrete
00111001 Refined Concrete
00111010 Refined Hazard Concrete
00111011 Landfill
00111100 Cliff Explosives
00111101 Iron Axe
00111110 Steel Axe
00111111 Repair Pack
01000000 Blueprint
01000001 Deconstruction Planner
01000010 Blueprint Book
01000011 Boiler
01000100 Steam Engine
01000101 Steam Turbine
01000110 Solar Panel
01000111 Accumulator
01001000 Nuclear Reactor
01001001 Heat Exchanger
01001010 Heat Pipe
01001011 Burner Mining Drill
01001100 Electric Mining Drill
01001101 Offshore Pump
01001110 Pumpjack
01001111 Stone Furnace
01010000 Steel Furnace
01010001 Electric Furnace
01010010 Assembling Machine 1
01010011 Assembling Machine 2
01010100 Assembling Machine 3
01010101 Oil Refinery
01010110 Chemical Plant
01010111 Centrifuge
01011000 Lab
01011001 Beacon
01011010 Speed Module
01010011 Speed Module 2
01010100 Speed Module 3
01010101 Efficiency Module
01010110 Efficiency Module 2
01010111 Efficiency Module 3
01011000 Productivity Module
01011001 Productivity Module 2
01011010 Productivity Module 3
01011011 Raw Wood
01011100 Coal
01011101 Stone
01011110 Iron Ore
01011111 Copper Ore
01100000 Uranium Ore
01100001 Raw Fish
01100010 Wood
01100011 Iron Plate
01100100 Copper Plate
01100101 Solid Fuel
01100110 Steel Plate
01100111 Plastic Bar
01101000 Sulfur
01101001 Battery
01101010 Explosives
01101011 Crude Oil Barrel
01101100 Heavy Oil Barrel
01101101 Light Oil Barrel
01101110 Lubricant Barrel
01101111 Petrolium Gas Barrel
01110000 Sulfuric Acid Barrel
01110001 Water Barrel
01110010 Copper Cable
01110011 Iron Stick
01110100 Iron Gear Wheel
01110101 Empty Barrel
01110110 Electronic Circuit
01110111 Advanced Circuit
01111000 Processing Unit
01111001 Engine Unit
01111010 Electric Engine Unit
01111011 Flying Robot Frame
01111100 Satellite
01111101 Rocket Control Unit
01111110 Low Density Structure
01111111 Rocket Fuel
10000000 Nuclear Fuel
10000001 Uranium-235
10000010 Uranium-238
10000011 Uranium Fuel Cell
10000100 Used Up Uranium Fuel Cell
10000101 Science Pack 1
10000110 Science Pack 2
10000111 Science Pack 3
10001000 Military Science Pack
10001001 Productivity Science Pack
10001010 High Tech Science Pack
10001011 Space Science Pack
10001100 Pistol
10001101 Submachine Gun
10001110 Shotgun
10001111 Combat Shotgun
10010000 Rocket Launcher
10010001 Flamethrower
10010010 Land Mine
10010011 Firearm Magazine
10010100 Piercing Rounds Magazine
10010101 Uranium Rounds Magazine
10010110 Shotgun Shells
10010111 Piercing Shotgun Shells
10011000 Cannon Shell
10011001 Explosive Cannon Shell
10011010 Uranium Cannon Shell
10011011 Explosive Uranium Cannon Shell
10011100 Artillery Shell
10011101 Rocket
10011110 Explosive Rocket
10011111 Atomic Bomb
10100000 Flamethrower Ammo
10100001 Grenade
10100010 Cluster Grenade
10100011 Poison Capsule
10100100 Slowdown Capsule
10100101 Defender Capsule
10100110 Distractor Capsule
10100111 Destroyer Capsule
10101000 Discharge Defense Remote
10101001 Artillery Targeting Remote
10101010 Light Armor
10101011 Heavy Armor
10101100 Modular Armor
10101101 Power Armor
10101110 Power Armor MK2
10101111 Portable Solar Panel
10110000 Portable Fusion Reactor
10110001 Energy Shield
10110010 Energy Shield MK2
10110011 Battery (armor)
10110100 Battery MK2
10110101 Personal Laser Defense
10110110 Discharge Defense
10110111 Exoskeleton
10111000 Personal Roboport
10111001 Personal Roboport MK2
10111010 Nightvision
10111011 Stone Wall
10111100 Gate
10111101 Gun Turret
10111110 Laser Turret
10111111 Flamethrower Turret
11000000 Artillery Turret
11000001 Radar
11000010 Rocket Silo
11000011 Water
11000100 Crude Oil
11000101 Steam
11000110 Heavy Oil
11000111 Light Oil
11001000 Petrolium Gas
11001001 Sulfuric Acid
11001010 Lubricant
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Transmit signal wirelessly over railway

Post by eradicator »

I just noticed that you can save a lot of space. As a loco that never moves doesn't need a reverse drive and can share a rail with more locos:
double.jpg
double.jpg (253.48 KiB) Viewed 6466 times
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
adam_bise
Filter Inserter
Filter Inserter
Posts: 450
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Transmit signal wirelessly over railway

Post by adam_bise »

Nice!
nosports
Filter Inserter
Filter Inserter
Posts: 274
Joined: Fri Jan 19, 2018 5:44 pm
Contact:

Re: Transmit signal wirelessly over railway

Post by nosports »

for a more extended data sending you could attach a wagon to the train and view the loading of the wagon as a signal, like airwaves......

so load the train with the signal(s) and drive to the reciever station and check the cargo....

you can then transfer a lot signls, depending how you would view the cargo.... (ie cables count up to 200 each stack, so in the extend you have some 100 erd possible signals for the 48 slots of a cargo wagon, and each wagon added adds some signal......)
Post Reply

Return to “Railway Setups”