I am trying to read a DLMS meter. It draws supply for communication using RTS/ DTS pins of the serial port. On Windows application, everything works just fine. However, it does not work using Android because RTS or DTR pins cannot be controlled using serial port component.
Is there any way to set RTS or DTR high while still using Android Serial component.
Thank you MIkko for adding support for toggling RTS/ DTR. I was able to check it today and it works fine. The only thing to remember is that the pin toggling functions should be called after media is opened. If one sets them along with baud rate, date bits etc and call medial.open function, these pins are not toggled. This is not an issue for me as I can call it immediately after opening the media.
Hi,
Hi,
RTS or DTR is not toggle is not supported at the moment. What chipheset you are using? I'll check if it's possible to add.
BR,
Mikko
I am using FTDI chipset at
I am using FTDI chipset at the moment.
Hi,
Hi,
Get the latest version and let me know if you have problems.
BR,
Mikko
Thank you MIkko for adding
Thank you MIkko for adding support for toggling RTS/ DTR. I was able to check it today and it works fine. The only thing to remember is that the pin toggling functions should be called after media is opened. If one sets them along with baud rate, date bits etc and call medial.open function, these pins are not toggled. This is not an issue for me as I can call it immediately after opening the media.
Hi,
Hi,
Thank you for this information. RTS and DTR are enabled on open in the next version.
BR,
Mikko