R
R
Ruslan Galiev2010-10-20 12:48:25
.NET
Ruslan Galiev, 2010-10-20 12:48:25

.Net work with Com port?

Can you suggest a piece of code on .Net to raise the voltage on any pin of the Com-port (RS232) for a period of 10 seconds? Thanks a lot.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
pietrovich, 2010-10-20
@pietrovich

programmatically and + 5V exactly - no way. its voltage varies from +5..+15 for "0" and -5..-15 for "1". including you will most likely catch something in the region of (±) 7..8V
look at the circuits on the network (google: rs232 5v) that will give you even 5v, and then look for a software solution how to constantly give 1 on the pin. (true, emnip, you will still get a “saw”, because depending on the frequency, there will be more drops to “login is unclear” (+ 3v)). in general, without an additional scheme, well, nothing

R
redsh, 2010-10-20
@redsh

only 2-3 pins can be controlled there, and this is a non-standard port mode, only built-in ports support it (now it seems that not even all of them). IMHO it is better to take the cheapest tin or peak, it costs like a com-com cable, and do everything on it without perversion. in normal mode, working with a com port is no more difficult than with a file, unless you need to set up timeouts and configuration

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question