All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ritesh Raj Sarraf <rrs@researchut.com>
To: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	linux-iio <linux-iio@vger.kernel.org>
Subject: Re: sensor-hub: Move the memset to sensor_hub_get_feature()
Date: Wed, 28 Dec 2016 22:54:15 +0530	[thread overview]
Message-ID: <1482945855.8484.8.camel@researchut.com> (raw)
In-Reply-To: <1482943685.4497.19.camel@linux.intel.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi Srinivas,

Thank you very much for the quick reply.

On Wed, 2016-12-28 at 08:48 -0800, Srinivas Pandruvada wrote:
> Hi Ritesh,
> On Wed, 2016-12-28 at 18:53 +0530, Ritesh Raj Sarraf wrote:
> > Oh! That did not include my usb listing. Please find it below. If you
> > need more
> > information, please tell me.
> > 
> 
> Did you pick up the latest iio-sensor-proxy? There was some changes
> required in that.
> 

I tested it with 2.0, which was release around 3 weeks ago. Since then, there's
been 1 single change from today. I've picked that up and am building it now.
I'll share results with the newer proxy daemon soon.

> Also check under /sys/bus/iio/devices/iio:device*
> cat the raw x, y z for accelerometer and check if they change.

Thanks for mentioning this. The output on my setup looks suspicious.


rrs@learner:/sys/bus/iio/devices$ while true; do for x in iio*; do echo -en "Device: $x\t `cat $x/*[x-z]_raw`\n"; done; echo -en "sleep 2 secs\n\n"; sleep 2;  done
Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

Device: iio:device0	 553
6
3561
Device: iio:device1	 -1644531
441406
- -2484375
cat: 'iio:device2/*[x-z]_raw': No such file or directory
Device: iio:device2	 
Device: iio:device3	 22381
- -22381
0
cat: 'iio:device4/*[x-z]_raw': No such file or directory
Device: iio:device4	 
Device: iio:device5	 15
64615
65220
sleep 2 secs

^C
2016-12-28 / 22:46:54 ♒♒♒  ☹  => 130  
rrs@learner:/sys/bus/iio/devices$ ls iio\:device2/
buffer/  in_intensity_both_raw    in_intensity_offset              in_intensity_scale  power/          subsystem@  uevent
dev      in_intensity_hysteresis  in_intensity_sampling_frequency  name                scan_elements/  trigger/
2016-12-28 / 22:47:08 ♒♒♒  ☺  

rrs@learner:/sys/bus/iio/devices$ cat iio\:device*/name
incli_3d
magn_3d
als
gyro_3d
dev_rotation
accel_3d
2016-12-28 / 22:47:29 ♒♒♒  ☺  

Device4, for which there are no x, y, z attributes, reports the name "dev_rotation".
Even for the other devices, I see no change in the reported values.

- -- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEQCVDstmIVAB/Yn02pjpYo/LhdWkFAlhj9T8ACgkQpjpYo/Lh
dWkhgw/+Kthf+DDvsRlJNUrLGqzXqZnAOA7Eqpp1NeGXhoMOSzszh5biosrxzsUc
F99pBirxJ0E6RLHFIgTaX4BVy9KaRXH7bichOaRFn+BG7WgtxEJPtKbXxH0Wa/kQ
MhCK0HLgVxmNtlPX1fZW6AzrIV+mEGiXFf5pItcv6PpgATHTMZb98XCahnygzNnX
UZBBSRDcbOHKS8Fp3UER2IubuaBzn09x/5DsKwnaaOl6XILSG592fgY177vRcaq4
CH+UGLKal6YrAg/48e2Pi2G18RNWJiL2wDkqWL60wZB+++VGdseRmwdFAcrAPhQW
FPhwO1+/3cnbMx/lQn9DjwQ9ZhsA5t8JupEc5zzH60NFpTfgUOy8LWeGbvAQwsI9
hlknmMDBiaT6hoJmEKp4aSiwYrJFcuRgBqOiuAyhIp+nzh8FlJkvzfFSiOaWKuXp
wzsKRBfQ1CfbI9FqqL+tQiw4u98uR68itGIAnwWNdx8qXYlSPR0WZfc2AEQBlW4r
+AO8LhDS+5/0YRwfIvvMD2UCG4COEidZulC/Z/pHt5akv4AIc5JwAzII/EAQg8UF
5Fj9BMLkmoExTwrFeK6ylphhrAfmtKz1K6fdE72r6P3Fn/L+drv0KJuIWtrjaWBO
n4y5MSUPcJGOf0ykYLiBzXL7SEkz0g614ye1QFL5gpue+Kc2K6E=
=dV5z
-----END PGP SIGNATURE-----


  reply	other threads:[~2016-12-28 17:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-28 11:38 sensor-hub: Move the memset to sensor_hub_get_feature() Ritesh Raj Sarraf
2016-12-28 13:23 ` Ritesh Raj Sarraf
2016-12-28 16:48   ` Srinivas Pandruvada
2016-12-28 17:24     ` Ritesh Raj Sarraf [this message]
2016-12-28 17:37       ` Ritesh Raj Sarraf
2016-12-28 17:53         ` Ritesh Raj Sarraf
2016-12-29 17:22           ` Srinivas Pandruvada
2016-12-29 17:31             ` Ritesh Raj Sarraf
2016-12-30 10:47               ` Ritesh Raj Sarraf
2016-12-30 16:50                 ` Srinivas Pandruvada
2016-12-31 12:55                   ` Ritesh Raj Sarraf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482945855.8484.8.camel@researchut.com \
    --to=rrs@researchut.com \
    --cc=linux-iio@vger.kernel.org \
    --cc=srinivas.pandruvada@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.