Can 2 propellers share a resource?
mljohnst
Posts: 1
First time poster......
Is it possible to have two propellers share a resource, like an eeprom or sd card? I'm working on a project with a Spinneret and a second propeller. The Spinneret is basically maxed out. The second propeller would interface with several input devices. The "typical" approach seems to be to have the two propellers talk back and forth with a serial protocol, but if I approach it this way, I'm finding I need LOTs of code on the Spinneret to break apart the messages from the secondary prop and act upon them.
What I'd like to do is to simply use the secondary prop to write XML files to the same SD card as the Spinneret file uses, and then use the Spinneret to serve up the XML files to the internet. I realize I'd need some sort of lock to prevent access from one Prop while the other is using the SD card, but from an electrical standpoint, is this possible? Any interfacing considerations? I tried various searches but didn't find any threads that seemed to address this.
Thanks in advance,
Mike
Is it possible to have two propellers share a resource, like an eeprom or sd card? I'm working on a project with a Spinneret and a second propeller. The Spinneret is basically maxed out. The second propeller would interface with several input devices. The "typical" approach seems to be to have the two propellers talk back and forth with a serial protocol, but if I approach it this way, I'm finding I need LOTs of code on the Spinneret to break apart the messages from the secondary prop and act upon them.
What I'd like to do is to simply use the secondary prop to write XML files to the same SD card as the Spinneret file uses, and then use the Spinneret to serve up the XML files to the internet. I realize I'd need some sort of lock to prevent access from one Prop while the other is using the SD card, but from an electrical standpoint, is this possible? Any interfacing considerations? I tried various searches but didn't find any threads that seemed to address this.
Thanks in advance,
Mike
Comments
the test and demo material include http pages from SD , and multiple telnet sessions.
give it a whirl!
Thanks for the idea. It may be the solution to a problem I have been struggling with.
The issue is that the HTTP support is very big. Its configured with a minimal kernel as there isn't enough room for much dev support after HTTP stuff is loaded. But, it can serve HTTP pages all day just fine. AND the second prop can do pretty much anything you need, and just send the specific HTTP oriented requests to spinneret.
Its a good solution for some applications. In other cases, consider just using a Raspberry Pi. It can provide all the networking services for free, plus database and number crunching services. The way Sal does it is using Go channels, the RPi looks sort of like another cog to the prop, and the prop cogs looks like additional tasks to the RPi. If the prop does all the real time stuff,and the RPi does all the crunchy stuff, it can work out really well. I don't have a good demo set up yet.
But as long as you were planning to do the work on spinneret, it might net LESS work to do the network stuff on the RPI, and cost less, and offer interesting alternatives. It kind of cool but we haven't explored this very far yet.
The link I have attached shows a way to program two prop chips identically, using a single propplug. The schematic shows the props use the same single crystal also.
Each prop has its own eerpom to allow self modifying code. (shown in 2nd schematic)
http://forums.parallax.com/showthread.php/124520-Anyone-that-wants-more-data-up-the-USB-serial-pipe-Dual-FTDI-Parallel-Props-(hanno!)
Without driving each other crazy?
0 = available
1= prop 1
2 = prop 2
etc
The processor doesn't have a formal instruction to do that, so DIY.