Is it possible to create a B4A library from this Java source ?
https://github.com/ksksue/FTDriver
If yes which tutorial should I follow ? Thank you.
https://github.com/ksksue/FTDriver
If yes which tutorial should I follow ? Thank you.
Hello, one year has elapsed from the previous post, is there nothing new about it ?
I would like to interface a FTDI FT230X but unfortunately the UsbSerial v2.3 doesn't support it.
I found a driver and an example (here attached) of a Java code that compiles and works with eclipse and I would like to port it on B4A. I tried to make a B4A library by myself but after getting some error messages I realize to have an insufficient knowledge of Java for this.
Is there someone here that could make an attempt ?
This library will work with a lot of newer FTDI devices and I think it would be useful for many others.
Sub Globals
Dim mSerial As FTDriver
End Sub
javac 1.7.0_21
src\b4a\example\main.java:323: error: constructor FTDriver in class FTDriver cannot be applied to given types;
mostCurrent._mserial = new jp.ksksue.driver.serial.FTDriver();
^
required: UsbManager
found: no arguments
reason: actual and formal argument lists differ in length
1 error
javac 1.7.0_21src\b4a\example\main.java:323: error: constructor FTDriver in class FTDriver cannot be applied to given types;
mostCurrent._mserial = new jp.ksksue.driver.serial.FTDriver();
^ required: UsbManager
found: no arguments
reason: actual and formal argument lists differ in length1 error
You are trying to implement the driver directly instead of wrapping it. I would have the driver as a private class and the public FTDriver would have a private field of type ActualFTDriver (or whatever) and I would create that in an Initialize method and expose the fields and methods of that ActualFTDriver instance through the properties and methods of my public FTDriver class.
Yes for sure. USB Serial Monitor use this library and it works very well.
https://github.com/ksksue/Android-USB-Serial-Monitor-Lite
https://play.google.com/store/apps/...GwsMSwxLDEsImpwLmtza3N1ZS5hcHAudGVybWluYWwiXQ..
Edit : I've try to inform agraham of the existence of this library via a reply to this post http://www.b4x.com/forum/basic4andr...connecting-external-usb-device.html#post81506 but I believe he missed it.
BTW I'm ready to donate a small amount to anyone who port this library to B4A, and I'm sure I'm not the only one.
I hope you will succeed !
Krokiz
P.S. I am authorized to make a small donation to a person who make this one working.