ts-7000
[Top] [All Lists]

[ts-7000] Re: writting interrupt request routine

To:
Subject: [ts-7000] Re: writting interrupt request routine
From: "moonlightshard" <>
Date: Thu, 27 Aug 2009 20:24:31 -0000
--- In  "charliem_1216" <> wrote:
>
> --- In  "moonlightshard" <moonlightshard@> wrote:
> >
> > --- In  Jim Jackson <jj@> wrote:
> > >
> > > 
> > > [don't top post]
> > 
> > Ok
> > 
> > > Are you trying to write an IRQ handler in userspace?
> > > If so, give up straight away. You handle IRQ in the kernel. Phil did it 
> > > in a kernel module which is inserted into the kernel and runs in kernel 
> > > "space".
> > 
> > Yes, I suppose we were.  We have given it up.
> > 
> > > Try just commenting the include out and try recompiling. I've checked my 
> > > source and it's commented out.
> > 
> > Thanks, we commented the include out and we were able to generate adc.o.  
> > However, when we use /sbin/insmod command, it complains about a mismatch in 
> > kernel version:
> > 
> > Using /root/adc.o
> > insmod: kernel-module version mismatch
> >         /root/adc.o was compiled for kernel version 2.4.26
> >         while this kernel is version 2.4.26-ts11.
> > 
> > We downloaded the kernel source for version 2.4.26-ts11 and used it to 
> > compile, but it's still giving us this error.
> 
> If the error is exactly the same, then you did not properly point to the 
> -ts11 kernel source when (re)-compiling adc.o.  Make sure you are inserting 
> the new module you just compiled, not the old one.
> 
> > 
> > Any suggestions?
> > 
> 
> Yes, take a look at:
> http://lwn.net/Kernel/LDD2/
> 
> It helps a great deal when learning to develop linux kernel device drivers.  
> There is a newer one (LDD3) that is for 2.6 kernels; LDD2 is for 2.4 kernels.
> 
> > Thanks
> >
> 
> regards, ......... Charlie
>

Hi again,

We were able to load the kernel module and use functions written in this module 
for our program. However, we needed a sample rate of 1kHz, and we were having 
trouble sampling at a constant frequency for any frequency above 1Hz.

We don't beleive there are any errors in our program, and in testing this we 
tried to test Phil's kernel simply with the kernel comands he set up.  We set 
our desired sampling rate using a ECHO command that came with the module, and 
the module, using a interrupt routine, wrote the sampled data to a dev/adc1. 
Then we tried to read the sampled data using cat dev/adc1. The output displays 
at a fast rate(as 1kHz should be), but pauses about every half a second, and 
keeps going at the same paste. 

We would like to know why this is happening, and how to use Phil's code to 
achieve a constant 1kHz sampling rate.

Thanks 





------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU