nBus client API pre MCU (bridge)

Juraj Ďuďák 27e534fde7 Merge branch 'jd_cleanup' of irep/nBus-bridge into master há 11 meses atrás
Core 3e0feee744 Fixed code redundacy há 11 meses atrás
Drivers 3e0feee744 Fixed code redundacy há 11 meses atrás
Modules 81ace4870e dataframe length as uint16 há 1 ano atrás
graphs 75515065b5 +marmaid in doxy há 1 ano atrás
.clang-format 0c37900b54 dokumentacia há 1 ano atrás
.clang-format-ignore 0c37900b54 dokumentacia há 1 ano atrás
.cproject 3e0feee744 Fixed code redundacy há 11 meses atrás
.gitignore 4c44c4b872 Updated gitignore há 11 meses atrás
.project 3e0feee744 Fixed code redundacy há 11 meses atrás
Doxyfile 75515065b5 +marmaid in doxy há 1 ano atrás
LICENSE 3259c6340c Initial commit há 1 ano atrás
Makefile 0c37900b54 dokumentacia há 1 ano atrás
README.md 75515065b5 +marmaid in doxy há 1 ano atrás
STM32L432KCUX_FLASH.ld 7fb2874748 prvy bridge há 1 ano atrás
nbus-bridge.ioc 3e0feee744 Fixed code redundacy há 11 meses atrás
nbus-bridge.launch dab45546a7 Bridge Unicast Fix há 11 meses atrás

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