nBus client API pre MCU (bridge)

xnecas 9bf95a5eb5 Dependency cleanup and performance streamline hai 10 meses
Core 9bf95a5eb5 Dependency cleanup and performance streamline hai 10 meses
Drivers 7fb2874748 prvy bridge hai 1 ano
Modules 81ace4870e dataframe length as uint16 hai 1 ano
graphs 75515065b5 +marmaid in doxy hai 10 meses
.clang-format 0c37900b54 dokumentacia hai 10 meses
.clang-format-ignore 0c37900b54 dokumentacia hai 10 meses
.cproject a8b7cac575 prvá verzia Bridge - dokáže echovať hai 1 ano
.gitignore 7fb2874748 prvy bridge hai 1 ano
.project 7fb2874748 prvy bridge hai 1 ano
Doxyfile 75515065b5 +marmaid in doxy hai 10 meses
LICENSE 3259c6340c Initial commit hai 1 ano
Makefile 0c37900b54 dokumentacia hai 10 meses
README.md 75515065b5 +marmaid in doxy hai 10 meses
STM32L432KCUX_FLASH.ld 7fb2874748 prvy bridge hai 1 ano
nbus-bridge.ioc dab2132118 upgrade kniznice, nbus_slave: getData hai 1 ano
nbus-bridge.launch dab45546a7 Bridge Unicast Fix hai 10 meses

README.md

nBus-bridge

nBus klient pre MCU vo funkcii bridge. Modul podporuje 2 typu komunikácie

  • komunikácia s modulom nBusBridge
  • komunikácia s modulmi v internej sieti nBus

Protokol

Dátový rámec

Požiadavka @mermaid{packet_rq}

Odpoveď OK @mermaid{packet_rs}

Odpoveď ERR @mermaid{packet_rs_err}

  • Len - počet bajtov v pakete
  • MA - Module address
  • SA - Sensor address
  • FC - Function code
    • FC+E - Error flag: FC+0x80
  • DATA - Payload
  • CRC8 - CRC checksum

Adresovanie

Name MA SA
Broadcast global 0 0
Broadcast local 0 y
Unicast global x 0
Unicast local x y
to Bridge 0 0xFF