LAMW - is jTCPSocketClient can do modbus for PLC ing? lazarus / 43-Android ---------------------------------------------------------------------- Mongkey · 2021-10-07 13:25 Anyone already used it? for reading modbus. i got this insterseting modbus library in jar file, maybe some one could wrap it to jTCPSocketClient. https://github.com/zgkxzx/Modbus4Android ---------------------------------------------------------------------- jmpessoa · 2021-10-07 16:33 What about a LAMW "jModbus"   wrapper component? ---------------------------------------------------------------------- Mongkey · 2021-10-07 22:36 is it already available on LAMW? ---------------------------------------------------------------------- Mongkey · 2021-10-09 02:09 Is there any detail manual for wrapping jar library for LAMW? ---------------------------------------------------------------------- jmpessoa · 2021-10-09 02:23 QuoteIs there any detail manual for wrapping jar library for LAMW? You can get from here: (opendrive.com) https://od.lk/f/Ml8xOTc0OTIwNzNf a complete tutorial (from image1 to image34) how to add an "online" library to LAMW [new jComponent]!!! However the "datalogic"  APIs tested in LAMW code returned nothing (nil)... In fact the library source code pointed by Android Studio is clearly returning null in several APIs.... Edited: 1) Added to LAMW "Docs": "How_to_add_an_online_library_to_LAMW.txt" 2) I will create a initial jModbus component,  so we can try improve it! ---------------------------------------------------------------------- Mongkey · 2021-10-09 05:37 May be in my free time, i could create new library component for LAMW. ---------------------------------------------------------------------- jmpessoa · 2021-10-09 07:17 Done! New! jModbus component (Alpha) New demo: "AppModbusDemo1"  (Alpha) Thank you! PS1. Please, need tests! PS2. Now I'm going try to sleep a little.... ---------------------------------------------------------------------- Mongkey · 2021-10-09 09:34 Ok, thank you! I'm gonna test it ---------------------------------------------------------------------- Mongkey · 2021-10-10 02:19 this jmodbus cannot connect ---------------------------------------------------------------------- jmpessoa · 2021-10-10 02:58 Quotethis jmodbus cannot connect Well, you can try help me! (I do not understand anything about Modbus   ) Please,  go to  method "Connect" in " jModbus.java" [".......\android_wizard\smartdesigner\java"] Maybe, you can found and fix some bug! ---------------------------------------------------------------------- Mongkey · 2021-10-10 03:17 i found another with example, may be it would be easy porting to LAMW doc: https://www.kynetics.com/docs/2018/modbus_android/ source: https://github.com/kochedykov/jlibmodbus ---------------------------------------------------------------------- Mongkey · 2021-10-10 03:18 how to delete failed component from LAMW palette? trying to wrap modbus jar, but failed ---------------------------------------------------------------------- jmpessoa · 2021-10-10 03:31 Quotehow to delete failed component from LAMW palette? Why?? But you can!  go to "register_extras.pas"  ["......\android_bridges"] Quotetrying to wrap modbus jar How? The tutorial is here: "how_to_create_new_components.txt"      [".....\docs"] ---------------------------------------------------------------------- Mongkey · 2021-10-10 03:34 i build from android studio modbus4android -> ha ha cannot connect also  , i dont understand why it got many stars, but cannot do the job ---------------------------------------------------------------------- jmpessoa · 2021-10-10 03:44 Quotei build from android studio modbus4android -> ha ha cannot connect also  , i dont understand why it got many stars, but cannot do the job  Ok. But don't give up!  try find the error! "Android Studio" can help you! (you "net" is ok?  you have a IP/Port for  Modbus server?) ---------------------------------------------------------------------- Mongkey · 2021-10-10 03:48 this one also using modbus4android but it works, ---------------------------------------------------------------------- jmpessoa · 2021-10-10 03:53 Good News! So, we  can insist with  modbus4android! (some code?) ---------------------------------------------------------------------- Mongkey · 2021-10-10 08:47 library code: download attachment modbus simulator: https://sourceforge.net/projects/modrssim2/