Skip to content

devel0/iot-serial-intercomm

Repository files navigation

iot-serial-intercomm


Description

Reliable two host serial communication.

Features:

API

Quickstart

Install using vscode command palette PlatformIO: New Terminal referring to platformio registry cli mode doc.

The example01 shows two host implementation ( host A, host B ) corresponding to two nucleo F446RE configured as follow:

  • host A

    • uses Serial1 (rx:RB7, tx:PA9) for communication
  • host B

    • uses Serial3 (rx:PC11_ALT1, tx:PC10_ALT1) for communication
  • each host transmit its host-protocol.h info, containing host millis() to other

  • each host print received other host protocol info using rxDataCallback callback

  • after each send while (!ic.ackReceived()) { ... } loop ensure packet is acknowledge by counterpart

Examples

Upload/Debug

  • to upload two board simultaneosly connected must configure custom_hla_serial id in platformio.ini
  • select which environment with Platformio: Switch Project Environment
  • this allow start two debug session ( use CTRL+ALT+B to ensure rebuild and reload may required ) then hit F5

About

reliable two host serial communication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published