Iam not very familiar with Java and its libraries in B4a.
Iam trying to modify the USBSerial library to support flow control for CP2102. There is a function definition in Cp2102SerialDriver.java called public void setRTS(boolean value). I tried adding
setConfigSingle(SILABSER_SET_MHS_REQUEST_CODE, MCR_ALL | CONTROL_WRITE_DTR | CONTROL_WRITE_RTS | MCR_RTS);
Compiled the library using SimpleLibraryCompiler and got it into b4a and then tried invoking the function through reflection. But I am not sure whether the code is getting executed. I tried adding Log.d to the function but its not appearing in the B4a logs.
Would like to know how to add to the B4a logs from a library and whether this is the right way of adding the SetRTS function.
Iam trying to modify the USBSerial library to support flow control for CP2102. There is a function definition in Cp2102SerialDriver.java called public void setRTS(boolean value). I tried adding
setConfigSingle(SILABSER_SET_MHS_REQUEST_CODE, MCR_ALL | CONTROL_WRITE_DTR | CONTROL_WRITE_RTS | MCR_RTS);
Compiled the library using SimpleLibraryCompiler and got it into b4a and then tried invoking the function through reflection. But I am not sure whether the code is getting executed. I tried adding Log.d to the function but its not appearing in the B4a logs.
Would like to know how to add to the B4a logs from a library and whether this is the right way of adding the SetRTS function.