473,395 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Firing pins using serial lines RTS DTR

Hello:
I'm trying to use a serial port to activate a leds panel playing three
lines. I decided to do this way: one to send the data (RTS), another one to
use it as a data clock (DTR) and another one when the data frame has
finished (Tx with bit stop).

It works fine, but it is not quick enough. I can send about 50 bits every
millisecond using DTR and RTS, and using Windows CE it's worse. Maybe the
problem is in the api EscapeCommFunction, but I'm not sure.

How can I use these lines without any internal process, only to fire pins of
devices?
Should I use a parallel port?

Thanks in advance for your help
Best regards
Nov 16 '05 #1
2 4285
Jose,

If you write unmanaged code that uses the EscapeCommFunction, do you
still get the same slowdown? While there is little overhead in calling API
functions through the P/Invoke layer (about 7 extra instructions), it still
can add up, especially if you are running it in a tight loop.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jose" <je***@innovem.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hello:
I'm trying to use a serial port to activate a leds panel playing three
lines. I decided to do this way: one to send the data (RTS), another one
to
use it as a data clock (DTR) and another one when the data frame has
finished (Tx with bit stop).

It works fine, but it is not quick enough. I can send about 50 bits every
millisecond using DTR and RTS, and using Windows CE it's worse. Maybe the
problem is in the api EscapeCommFunction, but I'm not sure.

How can I use these lines without any internal process, only to fire pins
of
devices?
Should I use a parallel port?

Thanks in advance for your help
Best regards

Nov 16 '05 #2
Jose,

you might want to give the serial components at
http://www.componentscience.net/Elements/TransPort/ a try. This could save
you lots of time and effort in the long run

Paul

"Jose" <je***@innovem.net> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Hello:
I'm trying to use a serial port to activate a leds panel playing three
lines. I decided to do this way: one to send the data (RTS), another one to use it as a data clock (DTR) and another one when the data frame has
finished (Tx with bit stop).

It works fine, but it is not quick enough. I can send about 50 bits every
millisecond using DTR and RTS, and using Windows CE it's worse. Maybe the
problem is in the api EscapeCommFunction, but I'm not sure.

How can I use these lines without any internal process, only to fire pins of devices?
Should I use a parallel port?

Thanks in advance for your help
Best regards

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Sonoman | last post by:
Hello everyone: I am new to Visual Basic and I have a problem that I cannot put my finger on. I am working on a school project and I am getting some serial data from a microprocessor. I have...
1
by: Junior | last post by:
I keep receiving this "The type or namespace name 'CASsEventHandler' could not be found (are you missing a using directive or an assembly reference?)" message in two particular lines, and I've...
2
by: KathyB | last post by:
Hi, In the pageload of my aspx file I have the following (in both not in postback and is postback)... btnList.Attributes.Add("onclick", "window.open('Scanned.aspx', 'Serial Numbers',...
2
by: Net Virtual Mailing Lists | last post by:
Hello, If I have a rule like this: CREATE OR REPLACE RULE sometable_update AS ON UPDATE TO table2 DO UPDATE cache SET updated_dt=NULL WHERE tablename='sometable'; CREATE OR REPLACE RULE...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
14
by: Bobus | last post by:
Hi, I have a table which contains a bunch of prepaid PINs. What is the best way to fetch a unique pin from the table in a high-traffic environment with lots of concurrent requests? For...
1
by: AMP | last post by:
Hello, I'd like to know how to access(apply a voltage) to individual pins in a serial port using c#. Thanks Mike
0
by: JNL via DotNetMonster.com | last post by:
hi guys! i need help on how to read signals from pins 10 and 12 of the parallel port do i need to add a reference or a COM component to read signals from the pins? all i need to do is get a...
6
by: cnixuser | last post by:
Hello, I have a basic application written which is designed to data over a serial cable and then receive a response back. I am not getting any triggers to my data received event. I have tried...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.