P pecook Member Licensed User Longtime User May 13, 2013 #1 Hallo all, it would be nice to allow b4a communicate via Modbus protocol with automation products, as they can be use for hobby and home automation. Modbus is standard used almost everywhere and its implementation could move b4a one step higher. Is Erel or anybody else able to compile this:Modbus for Java | Free Communications software downloads at SourceForge.net into b4A library ? Regards Tomas
Hallo all, it would be nice to allow b4a communicate via Modbus protocol with automation products, as they can be use for hobby and home automation. Modbus is standard used almost everywhere and its implementation could move b4a one step higher. Is Erel or anybody else able to compile this:Modbus for Java | Free Communications software downloads at SourceForge.net into b4A library ? Regards Tomas
F fiaful Member Licensed User Longtime User May 13, 2013 #2 Hello Pecook, I have worked enough with modbus ... translate the library itself is not complicated, especially if you rely on TCP to Modbus ... but if you want to use the rs485 bus (the most used and cheap), you have to write a library part that handles the USB port of the android device in a manner so that the data can pass correctly between the usb-rs485 adapter and the cascade plc... This requires many hours of development and testing on emulators ... then I fear that such a library will be realized only after a substantial reward ... but maybe I'm wrong and some crazy guy that has a little 'time to lose can achieve Upvote 0
Hello Pecook, I have worked enough with modbus ... translate the library itself is not complicated, especially if you rely on TCP to Modbus ... but if you want to use the rs485 bus (the most used and cheap), you have to write a library part that handles the USB port of the android device in a manner so that the data can pass correctly between the usb-rs485 adapter and the cascade plc... This requires many hours of development and testing on emulators ... then I fear that such a library will be realized only after a substantial reward ... but maybe I'm wrong and some crazy guy that has a little 'time to lose can achieve
F fiaful Member Licensed User Longtime User May 13, 2013 #3 I saw now the agraham's UslSerial library 2.0... probably it might be less difficult than expected ... but still requires hours of testing to be carried out ... because the context in which you want to work first of all need safety Upvote 0
I saw now the agraham's UslSerial library 2.0... probably it might be less difficult than expected ... but still requires hours of testing to be carried out ... because the context in which you want to work first of all need safety
P pecook Member Licensed User Longtime User May 13, 2013 #4 Nooooo ! We don't need slow RS232/485 RTU version ! Modbus TCP is part of library we need to implement ! Every Android device has Wifi or Ethernet access to TCP/IP protocol, enough for that.... This is what I would like to have implemented in b4a. Pete Upvote 0
Nooooo ! We don't need slow RS232/485 RTU version ! Modbus TCP is part of library we need to implement ! Every Android device has Wifi or Ethernet access to TCP/IP protocol, enough for that.... This is what I would like to have implemented in b4a. Pete
P pecook Member Licensed User Longtime User May 14, 2013 #5 Regarding testing. If somebody can port this java library to b4a, only Modbus TCP and UDP master, slave, I can do functionality testing and bug reports. :sign0085: Pete Upvote 0
Regarding testing. If somebody can port this java library to b4a, only Modbus TCP and UDP master, slave, I can do functionality testing and bug reports. :sign0085: Pete
F fiaful Member Licensed User Longtime User May 14, 2013 #6 well... ok... if I can find a bit of time, I look at Upvote 0
P pecook Member Licensed User Longtime User May 17, 2013 #7 ok, it would be nice to have it.... Upvote 0
V vcelak Member Licensed User Longtime User Dec 16, 2013 #8 Is possible to have this library for b4j??? Also with jserial support? THX Upvote 0
O oymyakon Member Licensed User Longtime User Jan 5, 2014 #9 Has anybody ported the modbus into B4A yet? i have tried to transfer the jamod ver1.2 to b4a as a library Everything seems to be right in eclipse and i have exported the jar file and and then produced the XML. However when i try to run it on an android device i get a java.lang.ClassNotFoundException: pmodbus$pmodbus error. Can anybody help me? Cheers Paul. Upvote 0
Has anybody ported the modbus into B4A yet? i have tried to transfer the jamod ver1.2 to b4a as a library Everything seems to be right in eclipse and i have exported the jar file and and then produced the XML. However when i try to run it on an android device i get a java.lang.ClassNotFoundException: pmodbus$pmodbus error. Can anybody help me? Cheers Paul.