Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.51 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.51 KB

Modbus RTU Master and Slave library for Raspberry Pi Pico based on the C++ SDK and FreeRTOS

Includes a project example for independent Master and Slave instances running concurrently.

This repository is a port of the Modbus library for STM32 microcontrollers: https://github.com/alejoseb/Modbus-STM32-HAL-FreeRTOS,

also, it uses the port of FreeRTOS to the Raspberry Pi Pico published at: https://github.com/PicoCPP/RPI-pico-FreeRTOS

The Library supports any combination of Master or Slave instances.

How to use the examples

  • Install the Raspberry PI Pico C++ SDK according to the official documentation
  • Configure the environment to work with Visual Studio Code
  • Clone this repository and initialize the submodules
git clone https://github.com/alejoseb/Modbus-PI-Pico-FreeRTOS.git
cd Modbus-PI-Pico-FreeRTOS
git submodule update --init --recursive
  • Open the repository folder in Visual Studio Code
  • update the launch.json file according to your environment.
  • Start the debugging session according to the official documentation

Recommended Modbus Master and Slave testing tools for Linux and Windows

Master client Qmodbus

Linux: https://github.com/ed-chemnitz/qmodbus

Windows: https://sourceforge.net/projects/qmodbus/

Slave simulator

Linux: https://sourceforge.net/projects/pymodslave/

Windows: https://sourceforge.net/projects/modrssim2/