File Stream - Download in Chunks511
Pages:
1
|
MikeMills private msg quote post Address this user | |
| Moved from another thread: @crevicedweller: File storage looks interesting. I tried it and it works well to download the file to a PC with essentially unlimited storage. I would like to use it with an embedded processor so would need to read the file a line at at time (maybe 512 bytes per transaction), save the line to local non-volatile storage, probably on an SD card, and keep repeating until the end of the file is encountered. This would provide the essential elements of an over the air upgrade capability to the embedded processor product. Is there a way to read the file as described? If not has that been considered as a future addition? |
||
| Post 1 IP flag post | ||
|
MikeMills private msg quote post Address this user | |
| @crevicedweller Your suggestion makes sense in the device world. Eventually we will probably add streaming capabilities for video files, but I doubt that would help you. We could extend our API to do what you're asking. What would work for you? 1. Requesting by line number? 2. Requesting by startByteNumber and numberOfBytes |
||
| Post 2 IP flag post | ||
|
crevicedweller private msg quote post Address this user | |
| The second method looks good, in part since it is similar to what I am used to with opening and reading a file directly. Pardon if this is redundant. For background, the file i posted is a binary image of the application code that runs on the embedded processor. I imagine a small protected portion of code on that processor that would read the file and program it into the normal run area on the processor then jump to that code for normal operation. The generic term for that is a "Bootloader" and is a common way to upgrade code on an embedded processor product. Placing the file on Grovestream, where we already have several streams monitoring normal operation solves several obstacles to the "over the air" upgrade process for a small company with limited ability to provide the servers etc to support access to the file. Probably what you meant by "...makes sense in the device world". |
||
| Post 3 IP flag post | ||

