nBus client API pre MCU (bridge)

xnecas 3e0feee744 Fixed code redundacy 11 сар өмнө
Core 3e0feee744 Fixed code redundacy 11 сар өмнө
Drivers 3e0feee744 Fixed code redundacy 11 сар өмнө
Modules 81ace4870e dataframe length as uint16 1 жил өмнө
graphs 75515065b5 +marmaid in doxy 1 жил өмнө
.clang-format 0c37900b54 dokumentacia 1 жил өмнө
.clang-format-ignore 0c37900b54 dokumentacia 1 жил өмнө
.cproject 3e0feee744 Fixed code redundacy 11 сар өмнө
.gitignore 4c44c4b872 Updated gitignore 11 сар өмнө
.project 3e0feee744 Fixed code redundacy 11 сар өмнө
Doxyfile 75515065b5 +marmaid in doxy 1 жил өмнө
LICENSE 3259c6340c Initial commit 1 жил өмнө
Makefile 0c37900b54 dokumentacia 1 жил өмнө
README.md 75515065b5 +marmaid in doxy 1 жил өмнө
STM32L432KCUX_FLASH.ld 7fb2874748 prvy bridge 1 жил өмнө
nbus-bridge.ioc 3e0feee744 Fixed code redundacy 11 сар өмнө
nbus-bridge.launch dab45546a7 Bridge Unicast Fix 11 сар өмнө

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