libmodbus
libmodbus copied to clipboard
A Modbus library for Linux, Mac OS, FreeBSD and Windows
Hi all , I have successfully installed `master branch` of libmodbus on my `ubuntu-20.04.3 os`, from given link- https://github.com/stephane/libmodbus `I want to use my linux pc as a slave, Anyone...
Hello, got a question regarding the project rituals more than libmodbus itself at the moment: a NUT contributor implemented a patch for USB RTU for libmodbus, tested with a number...
modbus-private.h:100 int s; SOCKET on Windows is not int, it's a larger type - int64_t*.
The version of libmodbus in the Windows system: V3.1.1 The version of libmodbus in the Ubuntu system: V3.0.6 I recently encountered some issues while developing using the libmodbus library. The...
modbus_strerror_r() as MT-Safe replacement for modbus_strerror() introduced. Documentation and tests updated accordingly.
您好,我在使用modbus tcp协议写客户端程序,客户端会不停的向服务端发送请求数据。 设置了modbus_set_error_recovery(ctx, MODBUS_ERROR_RECOVERY_LINK | MODBUS_ERROR_RECOVERY_PROTOCOL); 当我将网线拔掉时,调试信息显示 timeout select类似的信息,这是正常的,但是断开网线一段时间后,就会报ERROR Resource temporarily unavailable。调试发现是在执行modbus_read_registers 函数会报此错误。 我在libmodbus源码里调试了下,发现在tcp正常连接中,拔掉网线,程序并没有检测到链路断开(errno)来重新建立连接,而是一直在modbus_flush,然后继续发送,然后就报了Resource temporarily unavailable错误,不知道这样理解是否正确,期待您的回复 ~~~ do { rc = ctx->backend->send(ctx, msg, msg_length); if (rc == -1) { _error_print(ctx,...
Please avoid the use of functions which are known to be not Thread-safe (POSIX: MT-Unsafe). Related: #412 Rational: I understand that the libmodbus library is not thread safe by its...
Please read the following carefully before submitting this new issue. - Please ensure, that you are really reporting a bug. When in doubt, post a message on or send an...
Hello @stephane , I have used your library in QT framework and i am trying to make one QT application but when I first time launch my application at a...
There is a misleading type cast in function modbus_tcp_listen(). I think ```c if (setsockopt(new_s, SOL_SOCKET, SO_REUSEADDR, (char *) &enable, sizeof(enable)) == ``` should be replaced by ```c if (setsockopt(new_s, SOL_SOCKET,...