Code Monkey home page Code Monkey logo

snarc's People

Contributors

davidbuzz avatar

Watchers

 avatar  avatar

Forkers

lhovo

snarc's Issues

Wear leveling EEPROM for card list

Attempt to average the number of writes over the entire EEPROM. This may be especially important if the entire access list is pushed to the SNARC.

Reduce EEPROM usage for tags

Currently using 12 bytes per tag. 10 for the ascii representation of the tag (hexadecimal), 1 for the ending null char, 1 for yes/no access.

If the tag's value is stored as number (or a set of octets), we only need 5 bytes for the tag and 1 for the yes/no. This is assuming that we still need the access byte. Otherwise if revoked tags are to be deleted, we only need 5 bytes per tag.

Or we could also use:
CRC-32 hash (33bits), which is still 5 bytes in eeprom. But we have 7 extra bits to use.
CRC-16 (17bits), 3 bytes + 7 extra bits.

Or FNV-1a hash (32bits). 4 bytes, no extra data.

Considering the data being stored, is there a benefit of using a hash rather than just the 5 octets? Not a major issue since the actual source of data will be stored elsewhere and the arduino will grab the entire list and save it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.