* Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor [not found] <1515197240.26317.65.camel@intel.com> @ 2018-01-06 0:20 ` Alan Cox 2018-01-06 13:12 ` Jonathan Cameron 0 siblings, 1 reply; 3+ messages in thread From: Alan Cox @ 2018-01-06 0:20 UTC (permalink / raw) To: Pandruvada, Srinivas Cc: linux-iio@vger.kernel.org, jic23@kernel.org, linux-kernel@vger.kernel.org, linux-input > >From an IIO sensor point of view A Gesture sensor: > Outputs > A pre defined activity type > WAKE > TILT > GLANCE > PICK_UP > & > more > > A user defined activity type as "string" > > Inputs > A raw binary cdev interface to download templates/patterns > > > I want to gather more opinions before submitting a RFC patch. The only question I have is should it appear under IIO or should it be an input event interface. It feels to me more like an input device in that in this case while it's not keys or joystick it is still 'please do X'. That might also make it much easier (in the non-Android space in particular) to bind these activities to actions in things like web browsers. (+ linux-input) Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor 2018-01-06 0:20 ` [RFP] iio: Support of gesture sensor as a standard IIO sensor Alan Cox @ 2018-01-06 13:12 ` Jonathan Cameron 2018-01-06 17:43 ` Pandruvada, Srinivas 0 siblings, 1 reply; 3+ messages in thread From: Jonathan Cameron @ 2018-01-06 13:12 UTC (permalink / raw) To: Alan Cox Cc: Pandruvada, Srinivas, linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-input-u79uwXL29TY76Z2rM5mHXA On Sat, 6 Jan 2018 00:20:24 +0000 Alan Cox <gnomes-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org> wrote: > > >From an IIO sensor point of view A Gesture sensor: > > Outputs > > A pre defined activity type > > WAKE > > TILT > > GLANCE > > PICK_UP > > & > > more > > > > A user defined activity type as "string" > > > > Inputs > > A raw binary cdev interface to download templates/patterns > > > > > > I want to gather more opinions before submitting a RFC patch. > > The only question I have is should it appear under IIO or should it be an > input event interface. It feels to me more like an input device in that in > this case while it's not keys or joystick it is still 'please do X'. That > might also make it much easier (in the non-Android space in particular) > to bind these activities to actions in things like web browsers. > I agree that this may well be an option for many of the gestures specifically metioned (flicks etc and glyphs). However, there are other obvious uses of this technology such as step detection or activity classification (running, walking sitting) that so far have fallen in the scope of IIO as they aren't really things you expect the device to perform an an action in response to. Another one of those messy corners that fall through the gaps! The drivers/iio/accel/mma9553.c does activity detection, but that isn't really 'events' in the same way as we have here... So right answer might be a hybrid of an underlying flexible IIO device and an input front end for when it makes sense. We probably need to get the in kernel use of IIO events sorted. Non event stuff has been sorted for years, but this last corner was never of enough interest to anyone to actually implement it (it's fairly straight forward to do). > (+ linux-input) > > Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFP] iio: Support of gesture sensor as a standard IIO sensor 2018-01-06 13:12 ` Jonathan Cameron @ 2018-01-06 17:43 ` Pandruvada, Srinivas 0 siblings, 0 replies; 3+ messages in thread From: Pandruvada, Srinivas @ 2018-01-06 17:43 UTC (permalink / raw) To: gnomes@lxorguk.ukuu.org.uk, jic23@kernel.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org On Sat, 2018-01-06 at 13:12 +0000, Jonathan Cameron wrote: > On Sat, 6 Jan 2018 00:20:24 +0000 > Alan Cox <gnomes@lxorguk.ukuu.org.uk> wrote: > > > > > > > > > > > > > > From an IIO sensor point of view A Gesture sensor: > > > Outputs > > > A pre defined activity type > > > WAKE > > > TILT > > > GLANCE > > > PICK_UP > > > & > > > more > > > > > > A user defined activity type as "string" > > > > > > Inputs > > > A raw binary cdev interface to download templates/patterns > > > > > > > > > I want to gather more opinions before submitting a RFC patch. > > The only question I have is should it appear under IIO or should it > > be an > > input event interface. It feels to me more like an input device in > > that in > > this case while it's not keys or joystick it is still 'please do > > X'. That > > might also make it much easier (in the non-Android space in > > particular) > > to bind these activities to actions in things like web browsers. > > > I agree that this may well be an option for many of the gestures > specifically > metioned (flicks etc and glyphs). > > However, there are other obvious uses of this technology such as step > detection > or activity classification (running, walking sitting) that so far > have fallen > in the scope of IIO as they aren't really things you expect the > device to > perform an an action in response to. Another one of those messy > corners > that fall through the gaps! > > The drivers/iio/accel/mma9553.c does activity detection, but that > isn't > really 'events' in the same way as we have here... > > So right answer might be a hybrid of an underlying flexible IIO > device > and an input front end for when it makes sense. What about we can also send an input event, if the event is one of the input event type which is defined in uapi/linux/input-event-codes.h? > > We probably need to get the in kernel use of IIO events sorted. Non > event > stuff has been sorted for years, but this last corner was never of > enough > interest to anyone to actually implement it (it's fairly straight > forward > to do). Currently in IIO event is a u64 value in Fifo. But here we need some user defined events also. Since this ABI may already may be in use so can't change u64 to a structure with data type definition and associated data. But we can define additional predefined ids for custom events (Similar to HID sensor usage spec added CUSTOM usage ids). Thanks, Srinivas > > > > > (+ linux-input) > > > > Alan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-01-06 17:43 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1515197240.26317.65.camel@intel.com> 2018-01-06 0:20 ` [RFP] iio: Support of gesture sensor as a standard IIO sensor Alan Cox 2018-01-06 13:12 ` Jonathan Cameron 2018-01-06 17:43 ` Pandruvada, Srinivas
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).