Giter Site home page Giter Site logo

myproto's Introduction

myProto

Simple basic protocol without ack

Implementazione di un semplice protocollo peer to peer senza rilevazione delle collisioni. Si adopera su un bus interfacciato con un transceiver RS485.

Si può usare per realizzare un sistema multimaster con stazioni che trasmettono indipendentemente l'una dall'altra senza la supervisione di un dispositivo centrale (master).

Il transceiver provato è un MAX485 con piedino di controllo della direzione. Dovrebbe funzionare anche con un transceiver col controllo automatico della direzione (piedino con una impostazione qualsiasi). Sostanzialmente è un rimaneggiamento del codice citato di seguito:

  • @file ModbusRtu.h
  • @version 1.21
  • @date 2016.02.21
  • @author Samuel Marco i Armengol
  • @contact [email protected]
  • @contribution Helium6072

Trama:

    |---DA---|---SA---|---GROUP---|---SI---|---BYTE_CNT---|---PAYLOAD---|

    |---1B---|---1B---|----1B-----|---1B---|------1B------|---VARIABLE--|
  • DA: destination address - 1byte (1-254, 255 indirizzo di broadcast)

  • SA: source addresss - 1byte da 1 a 254

  • GROUP: group addresss - 1byte da 1 a 254 (per inviare a tutti membri del gruppo DA deve essere 0xFF o 255)

  • SI: service identifier (ACK, MSG) - 1byte

  • BYTE_CNT: numero byte complessivi (+payload) - 1byte

Il buffer di trasmissione memorizza un solo messaggio ed è a comune tra trasmissione e ricezione.

myproto's People

Watchers

 avatar

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.