Giter VIP home page Giter VIP logo

acs's People

Contributors

halogenek avatar

Watchers

 avatar  avatar

acs's Issues

Data frame proposition format

The first interface used in this system is UART through RS485. There is no data frame format standard available so i suggest to use 8 bit UART packets on top on RS485 and then construct a bigger data frame containing:

  • destination address
  • number of bytes (size of data)
  • n bytes of payload
  • n bytes of crc (depending on the amount of bytes sent)

destination address: the card hardware address selected depending on the slot number the card is inserted
number of bytes: the number of bytes of data sent in this frame (1-254)

Byte b0 b1 b2 b3 b4 b5 b6 b7
0 destination address
1 number of bytes
2 - n payload
n - m crc

Payload

The first byte of the payload can be used for selecting the right instruction and we can divide the address space into two section. Numbers from 0 to eq. 32 could be used for standard commands common for all cards (ping, what are you, on/off etc.). Numbers from 32 to 254 could be reserved for this particular card (for example in a voltage source card the commands could be: 32 - channel on/off, 33 - set voltage etc.)

This concept will be easy to implement on embedded hardware and on a PC.

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.