stephane / libmodbus

A Modbus library for Linux, Mac OS, FreeBSD and Windows
http://libmodbus.org
GNU Lesser General Public License v2.1
3.44k stars 1.75k forks source link

Libmodbus supports RTU host, slave and modbustcp. If they are used in RTOS at the same time, are they mutually exclusive? #573

Open zhigangbox opened 3 years ago

zhigangbox commented 3 years ago

Libmodbus supports RTU host, slave and modbustcp. If they are used in RTOS at the same time, are they mutually exclusive?

I'm at RT Thread is used at the same time, but the system will crash after running for a long time. The prompt position is "RT thread / SRC / IPC. C: 929, RT mutex release;/packages/libmodbus-latest/examples/modbus tcp test.c:224 ,FD SET(server_ fd, &readset);“

I wonder if it is because they are not mutually exclusive, and there is a conflict between modbustcp and RTU?