Getting trigger signal to application
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Getting trigger signal to application

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Stefan Näwe
Guest





Posted: Wed Nov 30, 2005 5:15 pm    Post subject: Getting trigger signal to application Reply with quote

Hi.

We need to get a hardware trigger signal (TTL level) into a linux box, delivered to an
application.
That application will wait for the trigger and send a UDP datagram to another linux box,
which in turn will signal the reception of the datagram by firing a trigger itself.

We need that setup to measure the time it takes from trigger in to trigger out.
What would be the best (i.e. 'fastest') setup for this ?
Trigger in/out through parallel port or serial ?
Could someone please give some general notes about what techniques we need to use.
(Sending/receiving UDP is no problem...)
I think we need some kind of kernel module to handle the interrupt from the serial
or parallel port. And then? What does the application need to do to wait for the interrupt
without polling ?

Thanks for any comment.

Stefan
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de
Back to top
Tim Keck
Guest





Posted: Thu Dec 01, 2005 8:19 am    Post subject: Re: Getting trigger signal to application Reply with quote

Stefan Näwe wrote:
Quote:
Hi.

We need to get a hardware trigger signal (TTL level) into a linux box, delivered to an
application.
That application will wait for the trigger and send a UDP datagram to another linux box,
which in turn will signal the reception of the datagram by firing a trigger itself.

We need that setup to measure the time it takes from trigger in to trigger out.
What would be the best (i.e. 'fastest') setup for this ?
Trigger in/out through parallel port or serial ?
Could someone please give some general notes about what techniques we need to use.
(Sending/receiving UDP is no problem...)
I think we need some kind of kernel module to handle the interrupt from the serial
or parallel port. And then? What does the application need to do to wait for the interrupt
without polling ?

Thanks for any comment.

Stefan
Take a look at:

http://www.wraith.sf.ca.us/ntp/#parallel-port
for a user space parallel port input.
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB