--- In "Phil" <> wrote:
>
> --- In "j.chitte" <j.chitte@> wrote:
> > I built Phils driver and it compiled without any messing. I
> > compiled it native after setting the Makefile to use local gcc
etc.
> >
> > insmod adc.o was clean although debug option did not spew the
> > additional info I understood it should.
>
> Glad to hear that all compiled ok. As for the debug option not
> working, were you looking for the output on COM1, or whatever you
> have the 'console' set to on the kernel command line? The debug
> output won't appear on a SSH/telnet session.
>
>
> > the devices apeared and setting sample rate to 4/s through /proc
> was
> > fine. However the actual data did not seem to bear much ralaton
to
> > the ADC pins.
>
> I can't think of anything in particular that you may have done or
> not done. It should be as simple as what you have detailed here. I
> guess then that I have two questions:
>
> 1. What kernel version have you compiled this against? (It's a
while
> since I have used this much myself, but I believe I have compiled
it
> against -ts9 and -ts10 without problems). I see no reason why
> everything would compile but not work functionally on other kernel
> versions but it may help to check. Also, other users may be able to
> confirm if the driver works against other kernel versions?
>
> 2. Are you able to vary the voltages on the pins as you are
'cat'ing
> the /dev/adc* devices? Even if you can do something as simple as
> connecting and disconnecting the voltage. What I am thinking is,
> disregarding for the moment that the actual numbers may be wrong,
> just confirm that if you are changing the voltage on the first
> channel, that the numbers are changing when you 'cat' the first
> device, etc. Also, that the numbers from the other channel devices
> _DON'T_ change when you change the voltage on an unrelated channel.
>
> Other than that, it seems a little strange, but hopefully we can
> sort it all out for you.
>
>
> > Thanks to Phil for the code.
>
> No problem! :)
>
> Cheers
> Phil
>
Hi Phil,
thanks for picking this up.
kernel is ts11
I should have looked closer at INSTALL, I had not noticed where the
debugging output went. I was using COM1 for other things. I now have
boot console back on and see the debugging o/p. All seems correct.
Here's comparative output with the 10V bipolar as supplied, a 5V
unipolar build and adc_logger (which agrees with a digital volt
meter).
In my last post I was confused further by adc_logger channels being 0-
7 , that was a large part of the problem. Beg your pardon.
:root# echo "2" > /proc/driver/adc/frequency
:root# cat !$
cat /proc/driver/adc/frequency
2
:root# cat /dev/adc3
125
126
125
125
125
126
125
:root# cat /dev/adc6
358
253
252
253
252
253
252
:root# cat /dev/adc4
379
262
261
262
261
262
262
now loading a 5V unipolar build of the module:
echo "2" > /proc/driver/adc/frequency
:adc-0.0.2# cat /dev/adc4
1042
1041
1041
1041
1041
:adc-0.0.2# cat /dev/adc6
1004
1005
1004
1005
1005
:adc-0.0.2# cat /dev/adc3
0
0
0
0
0
:adc_logger# ./adc_logger -T -f 3 -c 4 -p 500 -r 0 3 5 2
10:25:05 1.281 1.235 0.000
10:25:06 1.281 1.235 0.000
10:25:06 1.282 1.235 0.000
10:25:07 1.283 1.234 0.000
(ignore the -f opt to logger, it's a local mod to format the time
string)
... and back to the 10V build:
echo "2" > /proc/driver/adc/frequency
:adc_logger# cat /dev/adc4
376
263
263
263
263
:adc_logger# cat /dev/adc6
355
254
255
254
254
254
254
:adc_logger# cat /dev/adc3
123
122
123
123
123
123
123
Now I can interpret the 5V range , 1042/4096*5 = 1.273 so /dev/adc4
agrees with adc_logger channel 3 (these values may drift a couple of
percent, they are thermistors on the bench).
How can I decrypt the std module output?
Thanks for your help.
Jacques.
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/
|