Multiple Spinnerets Connected To A Hub
idbruce
Posts: 6,197
Hello Everyone
I don't know if this is possible or if it has been done before, but I would like to be able to connect multiple Spinnerets to a hub and access the contents of the microSD card of each Spinneret from a PC. Is this even feasible?
If so, could someone point me in the direction of applicable threads?
Bruce
I don't know if this is possible or if it has been done before, but I would like to be able to connect multiple Spinnerets to a hub and access the contents of the microSD card of each Spinneret from a PC. Is this even feasible?
If so, could someone point me in the direction of applicable threads?
Bruce
Comments
Web server tutorial The tutorial is running form the Spinneret and serving pages from an SD card. I've been messing with the timeout so if the style sheet does not load, please refresh the page.
Source Code
http://www.agaverobotics.com/spinneret/controlpanel.htm
However, let's assume that I had five spinnerets with four pushbuttons each. How could I get the inputs from the spinnerets to the pc?
Bruce
In a nut shell, the PC must be listening for the message on some port. The listener can be many things, Telnet, UPD server, web application, custom socket listener...
The tutorial shows how to use the Spinneret as a client.
Yea, I understand, but what about interfacing multiple Spinnerets to the same PC. There has to be some type of hardware with multile ports to plug in the data cables, and from there how is it interfaced with the pc?
I would imagine that interfacing 1 spinneret is quite easy, but I also imagine that interfacing 50 spinnerets to 1 pc would be quite difficult.
Bruce
Or, of course the devices could be scattered across the world....a lot like the Internet!!
Okay, but how does the device connect to the network?
50,000 ft view:
At some point you need to build an IP network. If you are connected to the Internet, you have some sort of network already. You may need to add switches (preferred) or hubs to accommodate all your device connections. Each device has a unique MAC address and IP address on the local network. These are used to route on the local network. If you want traffic to leave your network, then you will go through your router and whatever connects it to the Internet (it could be a DSL Modem/Router or a Cable Modem/Router or various other hardware combinations at this point. Now you are into the world of the Internet and possibly have many more things to consider in your connectivity configuration.
Now we are getting somewhere. So in other words, I could access 23 Spinnerets and 1 PC with hardware similar to this, and by assigning each spinneret a unique IP?
http://homestore.cisco.com/Cisco-Small-Business-SRW224G4-K9-NA-SF-300-24-24-port-10-100-Managed-Switch-with-Gigabit-Uplinks_stcVVproductId149516712VVviewprod.htm
Bruce
Correct, each Spinneret requires a unique IP and MAC on the network. You could even have mixture of WiFi routers and switches connected to many Spinnerets. There could be 23 Spinnerets in remote locations all over the world as long as they have internet access.
I understood to a certain extent, but not completely. I was under the assumption that the spinneret simply connected to an ethernet card. I have always been pretty knowledgable about computers, except for the subject of networks, setting up the IP addresses, and such. I did not know if anyone had experimented with setting up a complete network of spinnerets. I have heard that a home PC can be used as a web server, but I never took the time to find out how or if it could actually be done.
Bruce
Either way, thanks Mike and Rick
I don't mean to be flippant but the Spinneret is a device with an Ethernet interface and a TCP/IP stack. As such, it falls under the category of a bazillion other devices that are inter-networked with TCP/IP over Ethernet. If you can find the Application layer software to run on the Spinneret (or any of these other devices), it can act as an HTTP (web) server/client (thanks to the FANTASTIC work by Mike G), a PropForth based Telnet server or HTTP server, a network time client and possibly server (NTP - Beau Schwabe?), I believe an SMTP client (email), I believe a DHCP client (dynamic IP address fetching), and possibly/probably others. Jeff (OBC) has a Tweeting Propeller but that is with the MIcrochip ENCJ...whatever chip
I don't think any one has code for DNS resolution yet - the ability for the Spinneret to use something like twitter.com in an HTTP request and resolve it to 199.59.150.7 - this is a big chunk of code. So for now, everything uses hard coded IP addresses - not a big deal on a private or small network of Spinners. HOST file support would be kind of cool.
So basically, once you have the Ethernet connection and can talk to the TCP/IP stack, you can do bunches!! Like everything else then, it just becomes a matter of time, money and interest!!
I missed (or forgot) the DNS library in that thread!
You da man!! (again!)