Posted 27 April 2012 - 09:51 AM
How-to send data with bundled cable
The reason to create this network was a steal diskette and virus who delete all in my computer (.
We need a bundled cable and computer. Connect it to back sides of computers. And let's analyze algoritm.
The algoritm of sending/reading work on the principle of XON/XOFF but without XOFF.
Code:
P.S. Sorry for my bad english.
The reason to create this network was a steal diskette and virus who delete all in my computer (.
We need a bundled cable and computer. Connect it to back sides of computers. And let's analyze algoritm.
The algoritm of sending/reading work on the principle of XON/XOFF but without XOFF.
- Wait for start bit.
- Read byte over the interval T1 and write to terminal or file.
- Wait the end bit, if end input not end bit then do article 2.
Code:
Spoiler
--client
while rs.getBundledInput("back")~=11 do
sleep(0.1)
end
while rs.getBundledInput("back")~=13 do
term.write(string.char(rs.getBundledInput("back")))
sleep(0.1)
end
--server
rs.setBundledOutput("back",11)
sleep(0.05)
line = "Test"
for i=1, string.len(line) do
rs.setBundledOutput("back",string.byte(string.sub(line,i,i)))
sleep(0.1)
end
rs.setBundledOutput("back",13)
sleep(0.1)
rs.setBundledOutput("back",0)
P.S. Sorry for my bad english.