Dump Files on Spinneret w/o removing the card
![Oldbitcollector (Jeff)](https://forums.parallax.com/uploads/userpics/867/nV6URMYKHT1D6.jpg)
Folks will likely come up with more sophisticated methods of moving files to the SD card on the Spinneret without removing it, but this one is working for me. (mostly)
Simply change the name of the file both in the SD write line and the end of the program.
Use F10 to upload the file to your SD card. Once it's done, the Spinneret will reboot starting the Webserver from EEPROM.
I don't have a perfect method of determining the end of the file, so I get a few characters of trash at the end. (If anyone sees a solution to this, feel free to post it)
Adjust the line if r == 0 or r > 127 to if r == 2 or r > 127
Seems to solve the problem.
File2Spinneret.zip
OBC
Simply change the name of the file both in the SD write line and the end of the program.
Use F10 to upload the file to your SD card. Once it's done, the Spinneret will reboot starting the Webserver from EEPROM.
I don't have a perfect method of determining the end of the file, so I get a few characters of trash at the end. (If anyone sees a solution to this, feel free to post it)
Adjust the line if r == 0 or r > 127 to if r == 2 or r > 127
Seems to solve the problem.
File2Spinneret.zip
OBC
Comments
The app has a configuration file, App.config, if you're viewing the project with VS 2010. Otherwise, the exe (MultiSocketUpload.exe) and config (MultiSocketUpload.exe.config) file are in \MultiSocketUpload\MultiSocketUpload\bin\Debug. You have to update the config file for your setup. Again the source can be downloaded from http://www.agaverobotics.com/spinneret/source/
remoteSite = your Spinneret address
port = port
localSiteRoot = the root directory of your HTML web site.
username = a string to authenticate the upload.
There's an Authenticate SPIN method that is looking for "username". You should change the Authenticate SPIN method and the default config file node. The console app will ask for a username, if you press enter, the default value in the config file is used. Lazy, I did not feel like typing a username each time I ran a test...
You also need the SPIN logic see the code snippet below or down load the whole thing from http://www.agaverobotics.com/spinneret/source/
Finally you'll need an entry in the Dispatcher method to execute the logic.
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express
is the requirement to run this tool?
Thanks!
OBC
OBC
http://en.wikipedia.org/wiki/Hosts_%28file%29
I can change the code to accept an IP end point too. I'll have an update in a few hours.
C# express is not required. .NET framework 4 is required to fire up the exe.
Changed
to