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

Async read from SD card?


  • Please log in to reply
2 replies to this topic

#1 Klop

Klop

    Advanced Member

  • Members
  • PipPipPip
  • 49 posts

Posted 29 June 2011 - 01:28 PM

Hi, Does anyone know if it is possible to read from the SD card asynchronously? The FileStream class seems to be missing the .BeginRead method. Did Microsoft not implement it in the MF? Would it be possible to create a thread that handles the file reading? Thanks.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 29 June 2011 - 08:01 PM

Hi Klop,

Does anyone know if it is possible to read from the SD card asynchronously?

The FileStream class seems to be missing the .BeginRead method. Did Microsoft not implement it in the MF?

Would it be possible to create a thread that handles the file reading?


To fit on microcontrollers, the .NET Micro Framework implements a subset of the full .NET Framework. This is probably one of those cases.

All that said, you can absolutely implement a background thread which handles file reading.

Chris

#3 Klop

Klop

    Advanced Member

  • Members
  • PipPipPip
  • 49 posts

Posted 02 July 2011 - 09:56 PM

To fit on microcontrollers, the .NET Micro Framework implements a subset of the full .NET Framework. This is probably one of those cases.

All that said, you can absolutely implement a background thread which handles file reading.

Chris

I'll have a look at implementing a background thread if it becomes a problem reading from the SD card performance wise.

Thanks.




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.