??? 06/15/11 12:18 Read: times |
#182671 - Great Idea Responding to: ???'s previous message |
Per Westermark said:
Best is probably to store the data in a zip, arj, zoo or whatever that already contains crc16 or crc32 for the internal file contents. Several archive formats supports uncompressed store, which can make it easier for a microcontroller to scan through the file contents without the huge memory requirements needed for decompressing any data. This is a great idea. Storing for example into a ZIP file as uncompressed allows the extraction of the data by the MCU during reading with relatively simple access code. The ZIP file includes a header in front of each file image in the archive that is only a small number of bytes in length. This header includes the file image size, date, attributes, name and the CRC-32 for the image. Having this in the header means that there is no modification of the file image data at all. The information in the first header includes enough information to easily determine the offset within the archive to find the next image so the MCU could support multiple file images within one ZIP with ease. The headers of such uncompressed ZIP would be also very easy for the MCU to create if it were to be used in a mode where it created file images for sending back to a PC environment. Even if one did not have documentation of the header field contents it is easy enough to decode by making a series of test ZIPs with various sized files and then looking at the archive with a hex viewer/editor utility. Michael Karas |
Topic | Author | Date |
crc in flash | 01/01/70 00:00 | |
Off-topic | 01/01/70 00:00 | |
crc in flash | 01/01/70 00:00 | |
No, you did not mention that! | 01/01/70 00:00 | |
crc in usb flash drive | 01/01/70 00:00 | |
What Michael Karas Said! | 01/01/70 00:00 | |
How to ask questions the smart way | 01/01/70 00:00 | |
HDD Sector CRC's | 01/01/70 00:00 | |
Thanks! | 01/01/70 00:00 | |
One more doubt! | 01/01/70 00:00 | |
Writing the CRC | 01/01/70 00:00 | |
Uncompressed archive | 01/01/70 00:00 | |
Great Idea | 01/01/70 00:00 |