Menu

#1 Modbus Driver on linux or raspi?

1.0
open
Yuri
None
2021-12-05
2021-09-18
No

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

Discussion

  • Yuri

    Yuri - 2021-09-26

    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).

     
  • Guido Lauber

    Guido Lauber - 2021-12-05

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.