Solved

URGENT Reading Data at very high speed from LPT port

Posted on 2004-03-23
8
241 Views
Last Modified: 2011-09-20
I need to read data from a bycicle-trainig-computer that is transfered via LPT port.
Unfortunatly i do not get much information from the one that has build the hardware.
Only the following:

Pin 13 Cadence (Tretfrequenz)
Pin 10 Power (Drehmomentfrequenz)
Pin 15 und 19 Masse und Schirmung
The computer sends continous as soon as it is on

I already have tried TVicLPT from EnTech (http://www.entechtaiwan.com/dev/lpt/) but looks like i don't understand it enough ... :-(

What i like to get is some sort of sourcecode with a little sample application.
If you need more points ... just ask.
0
Comment
Question by:SoftDS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
8 Comments
 
LVL 8

Accepted Solution

by:
Cesario earned 500 total points
ID: 10668014
Dear Dominique,

   LPTStatus lesen ( 8bit )
   3 Bit gesetzt dann ist Pin 15 High
   4 Bit gesetzt dann ist pin 13 High
   6 Bit gesetzt dann ist Pin 10 High
   Da pin 13,10 und 15 Statusleitungen sind,  kannst du von dort keine Wert lesen.;-(
   Du musst dann Impulse pro Sekunde zählen bzw. schätzen ( Timer alle 2 ms die Datenleitung checken und ein bischen Mathe hast du das Ergebnis )


Best Regards

Cesario  
0
 
LVL 1

Author Comment

by:SoftDS
ID: 10668571
Hi Cesario,

reading all 2ms is not enough. I need at last 100 samples every ms.

Vor allem muss die Zeit zuverlässig sein. Das heisst immer genau gleich viele
Werte alle x-millisekunden.

...übrigens ... wo steckst du jetzt eigentlich?

Greetings
Dominique
0
 
LVL 3

Expert Comment

by:JDuncan
ID: 10668734
There is a good 32 bit parallel port driver at www.specosoft.com
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:SoftDS
ID: 10668896
The specosoft driver did not work on my Win2K Prof.
There is not much information about why. Just telling driver could not be loaded.

0
 
LVL 8

Expert Comment

by:Cesario
ID: 10669164
With the API Function QueryPerformanceCounter() and QueryPerformnaceFrequency() you can get a create  µS timer.
but this will slow down you system.

Grüsse aus Hamburg
0
 
LVL 8

Expert Comment

by:Cesario
ID: 10677646
Hallo Dominique,

betr. TretFreq:

Die maximale Tretfreq für die Bewohner des blauen Plantes liegt bei 280 U/Min. Bei Trainings liegt sie meist bei 60-90 U/min
Bei dieser max. Tretfreq. erwartet man also alle 240ms einen Impuls. Also benötigtst du keine 100 Messungen pro ms.

Auf der anderen Seite ist es wichtig herauszufinden wie lange pin13 auf high geschaltet wird wenn ein Impuls gefeuert wird..
Entweder eine kleines Diagrammbasteln und die Werte anzeigen lassen oder einen ossi verwenden.

Grüsse

Ces

0
 
LVL 3

Expert Comment

by:JDuncan
ID: 13191569
The specsoft driver has a problem loading if you are running from a network drive - try running from your C drive.

0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 2 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question