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

Transferring large text files: Serial or Ethernet?

file transfer serial ethernet rs232

  • Please log in to reply
4 replies to this topic

#1 Verdris

Verdris

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • LocationReno, NV

Posted 18 February 2013 - 07:51 PM

I've got a project that stores large amounts of data in the form of text files. These are stored on uSD cards, but Im' also looking into storing data on EEPROM chips. I understand how, in theory, I could transfer giant files (on the order of 2MB) with serial by using a StreamReader or something.

 

Would ethernet be faster? And how would I go about communicating directly to my Netduino from a computer via ethernet cable? Would I need a crossover?



#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 18 February 2013 - 08:13 PM

both would work, but serial is a bit more tricky, ethernet/tcp-ip makes sure your packets arrive, serial not, so you have to implemewnt a method to make sure you actually recieve all packets first.

 

than you need to split your 2mb file up to many smallchunks (serial and ethernet)

 

edit: also keep in mind you have very limited ram, so you want read a chunk, than write it to sd card, than read the next

 

iam not sure what would be faster.

 

eeprom, i love eeproms, but they only have 64kb per piece, there arent bigger ones aviable (yes, some have 128kb, but thats in fact 2x64kb ...)

so that wount work for 2mb files very well

 

edit: no corssover, just normal ethernet cable

 

so in total: thats very doable, but needs some work, and can be tricky



#3 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 18 February 2013 - 08:13 PM

I have done significant testing with this.  I threw out the entire Serial Communication portion of my project and went entirely Ethernet using the NeonMika webserver running on the Netduino Plus 2.  My windows program calls the server and via IP and gets a list of files and folders.  You choose what you want to download and it uses a Webclient to download the files.  Even over the Ethernet some of my larger log files take a minute or two.



#4 Verdris

Verdris

    Advanced Member

  • Members
  • PipPipPip
  • 128 posts
  • LocationReno, NV

Posted 19 February 2013 - 11:34 PM

I have done significant testing with this.  I threw out the entire Serial Communication portion of my project and went entirely Ethernet using the NeonMika webserver running on the Netduino Plus 2.  My windows program calls the server and via IP and gets a list of files and folders.  You choose what you want to download and it uses a Webclient to download the files.  Even over the Ethernet some of my larger log files take a minute or two.

How large is large in your project?



#5 JerseyTechGuy

JerseyTechGuy

    Advanced Member

  • Members
  • PipPipPip
  • 870 posts

Posted 20 February 2013 - 12:11 AM

Typically I would end up with 6 log files to transfer from every logging session.  On average there are 2 of 5meg each, 1 of 3 meg, 3 of 1meg.  Each set is in a dated folder so I download the folder with all 6 log files each time.  So this can be a total of 16meg and have had log sets as large as 25-30meg combined.  Depends how long the session is.







Also tagged with one or more of these keywords: file transfer, serial, ethernet, rs232

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.