Git Product home page Git Product logo

rocketuc's People

Contributors

artboffin avatar wendlers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

atphalix

rocketuc's Issues

"Stream" command

Command which selects pin and "streams" data from it.
i.e. when the stream command is sent the uC replies with a stream of data, no crc or other checking.
Ends with streamEnd command

This is useful for time sensitive readings, like to read acceleration.

Flags to catch events

Create a function that when a particular even happens, such as a threshold being crossed, a flag is set.
The flag stays set until the computer side reads and clears the flag.
This is to catch fast events that may be lost in transmission latency.

Calculate "real" CRC instead of checksum

In the protocol we use the term CRC, but actually we only calculate a simple checksum. This should be replaced by a real CRC. See sample C code for CRC7:

const unsigned char CRC7_POLY = 0x91;

unsigned char getCRC(unsigned char message[], unsigned char length)
{
unsigned char i, j, crc = 0;

for (i = 0; i < length; i++)
{
crc ^= message[i];
for (j = 0; j < 8; j++)
{
if (crc & 1)
crc ^= CRC7_POLY;
crc >>= 1;
}
}
return crc;
}

int main()
{
// create a message array that has one extra byte to hold the CRC:
unsigned char message[3] = {0x83, 0x01, 0x00};
message[2] = getCRC(message, 2);
// send this message to the Simple Motor Controller
}

Implement Reset Command (0xFF)

Implement Software Reset in firmware to allow client application to call this function on exit. SW reset on MSP430 could be done by sending "wrong password" to Watchdog:

WDTCTL = 0;

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.