Solved

URGENT Reading Data at very high speed from LPT port

Posted on 2004-03-23
8
238 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
  • 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
ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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