Hello Yuri
Your ModBus drivers run (on my laptop) with win10. But they do not run with Linux (Mint19) and they do not run on my raspi_zero. Maybe due to different definition of Socket (ptrUint as longint or QWord)? Do you have plans for a version with linux? Kind regards, Guido
The new version will be ready soon. Will work on Linux. Unfortunately, I don't have Raspberry Pi. I would be glad to get help with testing on Raspberry Pi and other platforms (MacOS, for example).
If I change in file SynaTCPMessages
Line 40 to
TProcSocket = procedure(Sender:TObject; Socket: TSocket) of object;
And line 906 to
if ((LastError = 10060) or (LastError = 110)) then
then your code runs under linux (mint 20.2) and raspian 4.19.66+.
I checked the reading of holdingRegisters with a raspberry zero w and a raspberry zero 2 w.
Kinde regards