Bit level serial port control?

cwtoyota

Member
Licensed User
Is there any way I can control the serial port (com1) on my devices at the bit level? I would like to be able to set the level (high/low) on the data out pin and on the CTS pin. I would also like to read the status of the data in pin and the RTS pin.

Thanks!
 

agraham

Expert
Licensed User
Longtime User
I think your ins and outs are mixed up. The Serial2 library lets you set DTR by the DTREnable, set RTS by the RTSEnable property, read CTS by the CTS property and read DSR by the DSR property.

My http://www.b4x.com/forum/additional-libraries/3368-serialex-improved-serial2-library.html#post18998 fixes a problem Serial2 has with binary data and offers more control. You could control the state of the data out pin by the Break property but there is no way or directly reading the data in pin.
 
Top