Search found 8 matches

by MrNando
Thu May 08, 2025 2:21 pm
Forum: ESP-IDF
Topic: Can I change the Modbus TCP slave listening port at runtime in ESP-IDF?
Replies: 1
Views: 155

Re: Can I change the Modbus TCP slave listening port at runtime in ESP-IDF?

In case someone else encounters the same issue, the only solution I’ve found is to destroy the Modbus stack using mbc_slave_destroy(), and then create it again with the new TCP port. It’s not the most practical approach, but it works reliably. Be careful not to have other tasks using Modbus ...
by MrNando
Wed May 07, 2025 12:40 pm
Forum: ESP-IDF
Topic: Can I change the Modbus TCP slave listening port at runtime in ESP-IDF?
Replies: 1
Views: 155

Can I change the Modbus TCP slave listening port at runtime in ESP-IDF?

I have a question about Modbus. I’m using the Modbus component in ESP-IDF. I initialize my device as a Modbus TCP slave and load an initial configuration. It runs a FreeRTOS task where it operates as a slave.

In my application, I can receive a new configuration for the slave via MQTT at runtime. I ...
by MrNando
Fri Apr 11, 2025 7:18 am
Forum: ESP-IDF
Topic: How to access Unit Identifier from MBAP header in Modbus TCP
Replies: 4
Views: 117

Re: How to access Unit Identifier from MBAP header in Modbus TCP

In the repo, it doesn't use the Espressif API. My question is whether it's possible to use the Modbus API provided by Espressif directly, or if I need to develop my own application using TCP/IP.
by MrNando
Fri Apr 11, 2025 7:12 am
Forum: ESP-IDF
Topic: How to access Unit Identifier from MBAP header in Modbus TCP
Replies: 4
Views: 117

Re: How to access Unit Identifier from MBAP header in Modbus TCP

Thank you very much, I'm going to take a look at them to see how it's implemented.
by MrNando
Thu Apr 10, 2025 6:46 am
Forum: ESP-IDF
Topic: How to access Unit Identifier from MBAP header in Modbus TCP
Replies: 4
Views: 117

Re: How to access Unit Identifier from MBAP header in Modbus TCP

I've been reviewing the Modbus documentation and API, and I have some doubts about whether I can get my project to work as intended.

Using the Modbus API directly, is it possible to make the ESP32 act as a gateway? Specifically, I want to implement a setup with three participants: a Modbus TCP ...
by MrNando
Wed Apr 09, 2025 10:58 am
Forum: ESP-IDF
Topic: How to access Unit Identifier from MBAP header in Modbus TCP
Replies: 4
Views: 117

How to access Unit Identifier from MBAP header in Modbus TCP

Hi, I'm working on a small project involving Modbus and I need some help retrieving a specific parameter.

My idea is to use the ESP32 as a gateway. In my setup, there's a Modbus master that communicates using Modbus TCP, and a slave device that uses Modbus RTU. The ESP32 should act as a bridge ...
by MrNando
Fri Jan 24, 2025 8:47 am
Forum: IDEs for ESP-IDF
Topic: After updating to ESP-IDF v5.4, the 'sample_project' template is missing when creating a new project in VS Code.
Replies: 5
Views: 7589

After updating to ESP-IDF v5.4, the 'sample_project' template is missing when creating a new project in VS Code.

Hello. I have an issue with the VS Code extension. Previously, I used version v4.4, and when creating a new project, I had the option to select "sample_project" as a template. Now I installed version v5.4, and that option is no longer available for creating a new project. If I choose one of the ...

Go to advanced search