Assert Request To Send (RTS)

enonod

Well-Known Member
Licensed User
Longtime User
I note from the SerialEx library that I can Get or Set the RTS line on a serial port. I have managed to wire an extra line from my Acer n310 connector and have that line available.
May I please have some pointers on the simplest method of switching that line, I assume I have to do something to enable the serial port, or perhaps I don't and it is available.
 

mjcoon

Well-Known Member
Licensed User
I assume I have to do something to enable the serial port, or perhaps I don't and it is available.

That suggests that you have not started your program, rather than just having a specific problem with a small aspect of it.

If that is the case, perhaps you would care to start from someone else's offering and then cut it down, such as http://www.b4x.com/forum/share-your-creations/5806-binary-serial-port-program-bluetooth-rs-232-compact-flash-rs-232-a.html#post34118

HTH, Mike.
 

agraham

Expert
Licensed User
Longtime User
Assuming your SerialEx object is called PortEx and your serial port is COM2.

' New the port
PortEx.New2(2, 9600, "N", 8, 1) ' you probably don't really care about baud rate etc.

' Open the port for use
PortEx.PortOpen=True

' Set the state of the RTS pin
PortEx.RTSEnable = True ' or False

... ' whatever

' Close it when you've finished
PortEx.PortOpen=False
 

enonod

Well-Known Member
Licensed User
Longtime User
@mjcoon: I have followed your link, but agraham has provided the simplest solution, but thank you very much anyway.

@agraham: Thank you very much, I am pleased that it is so straightforward, oh, and thanks for the library that does it.
 

enonod

Well-Known Member
Licensed User
Longtime User
I am having great trouble with serial. I have tried various pin connections and used Com1-4 but get nowhere. I have a suspicion that the default Com port may be zero (0) but on trying that I get an error 'an optional resource etc. is missing and a message cannot be displayed. This does not happen with any other Com number.
Is zero supported? Or is it unlikely that there is a Com0?
Does anybody know where I can obtain hair restorer?

Has anybody used a Com port (hardware) on the Acer series handhelds please?
 

enonod

Well-Known Member
Licensed User
Longtime User
Thank you as always agraham.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…