Skip to content

Latest commit

 

History

History

connection

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

eRPC hello world using Tinyproto as transport

Example of connection-oriented communication over UART using Tinyproto

Usage

Check the documentation of the erpc component. Check the documentation of the erpc_tinyproto component.

Communication between two ESP32, one as host and one as target

Assuming that:

  • the "host ESP32" is connected to the PC at port /dev/ttyUSB0
  • the "target ESP32" is connected to the PC at port /dev/ttyUSB1
  • "host ESP32" and "target ESP32" are connected via the other UART (the one that is not used for flashing and logging)
# Build, flash and monitor the "host" firmware
idf.py -Bbuild/host -DHOST=TRUE -p /dev/ttyUSB0 flash monitor

# Build, flash and monitor the "target" firmware
idf.py -Bbuild/target -DHOST=FALSE -p /dev/ttyUSB1 flash monitor

You can try to disconnect the UARTs and re-connect. RPC communication should resume on re-connection.