Search found 58 matches

by RMeissnerCC
29 May 2020, 12:06
Forum: Software
Topic: ModbusMaster does not notice changing
Replies: 4
Views: 2914

Re: ModbusMaster does not notice changing

Thank you Lukas for the reply. Sadly, we have exactly three adapters with the same chip inside. We already use udev rules, but cannot distinguish them based on device and vendor id. I will check how far I can use your solution. Regarding the flags: thank you very much, I look forward to your feedbac...
by RMeissnerCC
28 May 2020, 15:18
Forum: Software
Topic: ModbusMaster does not notice changing
Replies: 4
Views: 2914

Re: ModbusMaster does not notice changing

I checked more. I have looked at the Modbus_Action_Status_XX and the Modbus_Master_Status flag. At the beginning, when the adapter is connected and everything runs smoothly, the flags are all 0 (=good). Then I unplug the connector, all flags stay 0. I reconnect the connector (the usb port changed no...
by RMeissnerCC
28 May 2020, 14:40
Forum: Software
Topic: ModbusMaster does not notice changing
Replies: 4
Views: 2914

ModbusMaster does not notice changing

Dear all, I am using the ModbusMaster virtual device with an external adapter. In the past we have made the - very rare - experience that the usb hub of the RevPi Core 3+ fails such that the usb port changes, i.e. ttyUSB0 changes to ttyUSB1 or the like. Before using the virtual device we were able t...
by RMeissnerCC
27 May 2020, 15:38
Forum: Software
Topic: pimodbus-master.service failed
Replies: 28
Views: 16908

Re: pimodbus-master.service failed

I found some first hints. The service is located in "/lib/systemd/system/" It is not restarting upon failure, so I added "Restart=on-failure" to "Service". The question still remains: is that okay? What should I look out for? What do these error messages tell me? What t...
by RMeissnerCC
27 May 2020, 15:24
Forum: Software
Topic: pimodbus-master.service failed
Replies: 28
Views: 16908

pimodbus-master.service failed

Dear all, we are using the virtual modbus RTU master with a RevPi Core 3+. I have three different modbus devices. One of them has failed like two or three times in the past. As far as I can see it so far, if a modbus device is not reacting anymore, i.e., the slave address is not responding, the modb...
by RMeissnerCC
25 May 2020, 09:44
Forum: Software
Topic: modbus master failure
Replies: 6
Views: 4245

Re: modbus master failure

Hy Amar,
thank you for your answer, that is indeed great news.
Best, Robert
by RMeissnerCC
14 May 2020, 10:54
Forum: Hardware
Topic: Reading ethernet device
Replies: 3
Views: 3406

Re: Reading ethernet device

Hi Dirk, we are already using GET and POST requests in Python, but they take too much time. So for us it is not a problem of the code, but rather of the communication which takes too long. Thus, we hoped that there is maybe something like the serial gateway for ethernet, which we could program. Do y...
by RMeissnerCC
13 May 2020, 15:06
Forum: Software
Topic: modbus master failure
Replies: 6
Views: 4245

Re: modbus master failure

Hy Dirk, I delved a bit deeper. The "Modbus_Master_Status" often shows zero even though there is an error. The "Modbus_Action_Status" shows more often errors. Checking both actually works to catch most errors. There remains one: if I enter a wrong device_path in pictory or change...
by RMeissnerCC
13 May 2020, 11:56
Forum: Software
Topic: modbus master failure
Replies: 6
Views: 4245

Re: modbus master failure

Hy Dirk, thank you for your reply. That was helpful. Interestingly enough, I monitored this Modbus_Master_Status and unplugged the modbus adapter. The status stays at 0. No error message. Is this a bug or something which is not projected into the Modbus_Master_Status? None of the first four Modbus_A...
by RMeissnerCC
13 May 2020, 09:04
Forum: Hardware
Topic: Reading ethernet device
Replies: 3
Views: 3406

Reading ethernet device

Dear all, we use a device which can be read and written through something like GET/POST requests. Currently reading from that device takes like forever and exceeds the cycle time of our RevPi Core 3+. We could just increase the cycle time to one or two seconds, but that makes the system too slow. As...