CMB27 / ModbusRTUMaster

A library to implement the master/client portion of the Modbus RTU protocol on Arduino
MIT License
29 stars 6 forks source link

How to Not Use Depin? #11

Closed 654955321 closed 3 months ago

654955321 commented 3 months ago
Snipaste_2024-03-10_21-41-17

In my circuit design, there is no DEPIN, and R485 automatically switches between sending and receiving. How to modify and use your library?

654955321 commented 3 months ago

I changed it to "NO_DE_PIN", but the problem still exists. The MCU I use is STM32F103, and I use PlatformIO to compile it. The error prompts that the "avr/interrupt.h" header file cannot be found. Can this library be used normally on stm32? image

CMB27 commented 3 months ago

It looks like you are having issues with SoftwareSerial not the DE pin. I have not tested this library with STM32 microcontrollers, so I don't know how or if this library will work on that platform.

If you share your code, I may be able to help a little more, but I can't guarantee it will work.