473,624 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 EscapeCommFunct ion, 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 4306
Jose,

If you write unmanaged code that uses the EscapeCommFunct ion, 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.co m

"Jose" <je***@innovem. net> wrote in message
news:%2******** ********@TK2MSF TNGP15.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 EscapeCommFunct ion, 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******** ********@TK2MSF TNGP15.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 EscapeCommFunct ion, 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
3594
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 designed my "Do" loop to wait for each data set coming in at intervals of about 1/2 a second from the microprocessor. When I comment the following lines: bufferVar = ""
1
21376
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 tried everything... Could anyone please paste this and tell me what I'm doing wrong ? I use SerialPort.zip, which can be downloaded at http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b06e30f9-1301-4cc6-ac14-dfe325097c69 ...
2
3521
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', 'width=200, height=300');") When sent to the browser (ie 6) it appears as:
2
3320
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 sometable_insert AS ON INSERT TO table2 DO UPDATE cache SET updated_dt=NULL WHERE tablename='sometable'; CREATE OR REPLACE RULE sometable_delete AS ON DELETE TO table2 DO UPDATE
13
6851
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 serially to a BASIC stamp or a Javelin stamp and then use the stamp to set however many pins as 0's or 1's but should it be that hard to do with python. I've looked through how python does serial with the "serial" module but it just uses Java's...
14
2157
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 example, my PINs table might look like this and contain thousands of records: ID PIN ACQUIRED_BY
1
2079
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
1571
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 signal from the pins. can someone also provide a basic sample code for getting signals from the pins for me to understand it better? thanks a bunch!! -- Message posted via DotNetMonster.com
6
11733
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 connecting the pc I am running this application on to another PC which is also sending hex characters ;however, when I run the application I am getting no trigger of the data received event and am completely clueless as to why. Any help that could be...
0
8679
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7159
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2606
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.