Wow, that's awesome!
I was thinking about doing this before I went on my monthly "no computer sabbatical" but I never got to it.
I wrote a little bit about a wire protocol in a post somewhere :lol:
Mind if we see the E-Gate code?
Sorry if I'm stealing the thread a bit for this, but it's related at least
I was pretty bored today and thought I should play around some with the Socket Radio (which kicks ass).
So what I did was to write an application which more or less acts as a router for socket radios.
Upon connect, the router gives the socket radio a "DHCP" address, which can be used to communicate with other socket radios connected to the router.
The address is locked to the "hardware address" for a while and will then expire.
The hardware address is just the IP-address and the port seen from the router.
On the screenshot below I have two socket radios connected to the router.
The one to the left has address 802 and the one to the right has address 3014.
The constant values connected to the radio to the right is as follows:
A = 802 (Target)
B = 32 (Value 1, A)
C = 64 (Value 2, B )
The router sends the packet to the right socket radio as you can see on the screens
This also removes the firewall problem, by using this you don't have to forward anything (mostly, some old or very strict firewalls can still block incoming packets).
A problem, although a small one, is that it uses the A value for sender/target addresses.
The expression chip parses out the local address, source and the values (B->A, C->B, ...)
That's about it ^_^
I just thought I should share my wire-related projects with you guys.
If anyone finds this interesting you're free to use it, but I should probably write some docs on the "protocol" first.
EDIT: and yes, this could've been done a little better by writing a new wire addon for the routing system instead of using the socket radio like this.
But I'm just not that good with lua yet, maybe later ^_^
Last edited by Frigolit; 06-13-2008 at 06:06 PM.
Wow, that's awesome!
I was thinking about doing this before I went on my monthly "no computer sabbatical" but I never got to it.
I wrote a little bit about a wire protocol in a post somewhere :lol:
Mind if we see the E-Gate code?
http://tiny.cc/OMFGWTFBBQ
Best People On Wiremod!
Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015
Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
My IQ is 123
It's pretty simple:
Simply put, the A from the socket radio is the sender/target (the DHCP-address) the rest is data which is passed on to the O[n]-outputs.Code:N@Gateway I@A B C D E F G H O@Source OA OB OC OD OE OF OG LocalAddress UnknownAddress (A == 0 & B == 1) -> LocalAddress = C; (A == 0 & B == 2) -> UnknownAddress = C; Source = A OA = B, OB = C, OC = D, OD = E, OE = F, OF = G, OG = H
Source 0 means the router.
A == 0 & B == 1 means it should assign the DHCP address in C
A == 0 & B == 2 means that address C doesn't exist on the network
Other than that the router just sends data back and forth between the connected radios
There are some problems though, like if the expression gate isn't hooked up before the socket radio receives the address it won't know what address it got ;P
So to solve that, and get back all 8 inputs for data, I'm thinking of adding support for this in the socket radio, or well, an update/rewrite of it.
I'm just not very good with lua, yet.
Hey I can't find the wsr anywhere, and as far as I can tell i was not given any errors, any tips?
Edit: Neever mind, i am stupid... :x
Edit # 2 anyone have an example of a combined adv. dupe and a wsr combined? thats what interested me most, and it would be nice to have a starting point...
Last edited by Selig; 06-21-2008 at 01:09 AM.
On the second page there is a description of all the In-/Outputs of my Adv. Dupe. Teleporter.
If you know then, how to use this device local, you can just create a WSR (String one) and wire the "Data Out" from the Adv. Dupe. Tele. to any of the Inputs of the WSR.
Adv. Dupe. Tele.(Data Out)->WSR(A)
On the other server, just wire this in/output (however) to the Data Input of the Adv. Dupe Teleporter again, and start sending the data.
WSR(A) -> Adv. Dupe. Tele.(Data In)
PS: If this didn't help you at all, just tell me. Then i could try to find another explanation
Needz moar Lua
yeah what mostly confused me is the many input/outputs, i guess i will just fiddle for a bit.
EDIT: Ok, i managed to make a single-server one, but incorperating the wsr didn't work.
The sending thing sends the data (far as i can tell) and the receving thing is receving (the light hooked to (Receving) is lit) but the counter does not increment. :/
Final edit, i got it working, problem was with my setup, forgot to wire some things
Last edited by Selig; 06-22-2008 at 12:01 AM.
[UPDATE TO THE FREE FALL EXTENSION]
After I didn't go on development on this (Ran out of ideas <_<) I finally came back to work. I added the (like I call them) RAM-Cards. The Idea is based on adb's Keycard's addon (,from which I took the models too. So big thanks to him for making his keycard-addon) and works similar.
For more information, look on first post.
Version now: 20080717 2024
Needz moar Lua
[ANOTHER UPDATE TO FREE FALL EXTENSION]
The RAM-Card's got a small update. Changes:
-There are now Proximity Cards
-second memory-cell from cardreader gives card-size
For more information look on first post (I will always update this one, just to have all information bundled in one place, not spread over several pages)
PS: Added RAM-Card's to the Unofficial-Extras-SVN now.
Last edited by Free Fall; 07-19-2008 at 11:02 AM.
Needz moar Lua
[UPDATE TO WIRE SOCKET RADIO]
I'm proud to finally release a major update to my Wire Socket Radio.
- Hi-Speed support!
There is now a second STool to place a Hi-Speed version of the Socket Radio. There are two modes for it right now: "Shared RAM" and "Two Sided RAM". First one is simply, that if you change one of the cells, the change is transfered to the other device. Second one only transferes the change to other device, but doesn't store it locally.
You can download the new version on the first page.
PS: As always, try it out please, and report bugs, issues and such. Or just give a comment. ^_^
Last edited by Free Fall; 08-10-2008 at 03:30 PM.
Needz moar Lua
Right Awn :lol:
http://tiny.cc/OMFGWTFBBQ
Best People On Wiremod!
Black Phoenix, Azrael, Jat Goodwin, Magos Mechanicus, ITSBTH, Fizyk, g33v3s,tuusita, InfectiousFight, ief015
Pointless things that are pointless, are pointlessly pointless, therefore pointlessness is pointless.
So pointlessly pointing out the pointlessness of this pointless signature is utterly pointless.
My IQ is 123
Bookmarks