Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Easy access to SDcard during development


  • Please log in to reply
4 replies to this topic

#1 sanders

sanders

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 March 2011 - 08:13 AM

I'm working on a remote control type app which let you access the netduino plus webserver with your smartphone. Now I am putting together the website which is hosted on the SDcard of my N+. The procedure now is the following : Put the SD card in my card reader on my pc. Edit/create the html/javascript/jquery files and save them to the SDcard. Put the SD card in my N+ and reload the website to see everything is working (and possibly reset my N+) To add/change things I need to loop continuously through the above procedure. I wonder if there is an easier way to access my SD-file contents without having to swap the SDcard every time.... Any help appreciated. Sander.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 08 March 2011 - 08:15 AM

Hi Sander, Have you thought about creating a bit of code in your program (for use during development) which lets you send a file to the Netduino Plus...and then it saves that file to disk? An HTTP PUT feature perhaps? Chris

#3 sanders

sanders

    Member

  • Members
  • PipPip
  • 12 posts

Posted 08 March 2011 - 08:33 AM

Thanks for the fast reply ! I am a beginner and needed some pointers to where to look. (and browsing the forums didn't provide me an answer) I implemented the webserver posted in this thread : http://forums.netdui...ted-web-server/ and will look how to extend that using a http PUT feature. Sander.

#4 Fred

Fred

    Advanced Member

  • Members
  • PipPipPip
  • 302 posts
  • LocationUK

Posted 08 March 2011 - 09:34 AM

I was planning to knock up a very simple FTP server to go alongside the Netduino web server. I've not looked into the details, but it shouldn't be too hard - especially if only implementing a limited feature set. Http PUT might be a better way to go.

#5 sanders

sanders

    Member

  • Members
  • PipPip
  • 12 posts

Posted 11 March 2011 - 07:07 AM

(Being a beginner in Javascript/HTML etc.) I was looking into a html PUT method but found it is not supported in a html form (only get and post). Tried to do it with a POST method and almost got there, but parsing the stream, finding the startpoint of your file and the endpoint in there, turned out to be not really robust (within the confined memory of the netduino).... Sticking with a textarea and submit in my form in which I cut and paste my file contents.. (html / javascript only...) Sander.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.