Active Topics

 


Reply
Thread Tools
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#1
Hi,

can anyone tell me where can I find some details about programming proximity (and other) sensors?
I searched the development section, but found nothing, except it is a part of "Mode Control Entity(MCE)".

More specifically, I'm trying to find out does the proximity sensor keep a value of measured distance, and how far can it measure.

Thanks in advance.
 
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#2
You can read proximity sensor from sysfs entry:

cat /sys/devices/platform/gpio-switch/proximity/state

but this only gives you 2 states, "open" and "closed"
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#3
Might be worth a look:

http://talk.maemo.org/showthread.php...236#post436236

@sampppa - what other states would you expect, like how proximate, in centimeters?
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#4
Thanks sampppa,
but that's not what I'm looking for.
I really need the distance, not just the state.

@kwotski - it's not a state, but "how proximate in centimeters" is what I'm looking for. Thanks for the link, but it doesn't solve my problem.

Last edited by zolakt; 2009-12-22 at 18:30.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#5
zolakt - are you sure the device actually does that? From what I can see, it's just a two-state switch, open and closed are all you're going to get.

I'd love to be proved wrong though!
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#6
I'm not sure what it does.
But if it's a two state thing, it's a touch sensor.
It has nothing to do with proximity.
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#7
@zolakt, being able to detect distance does not have anything to do with being proximity sensor.

Wiki is your friend
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#8
Well, I think it detects if something is very proximate (near) or if it isn't, so the two states But I could be wrong. I'd be very pleased to be wrong! Please prove me wrong!
 
Posts: 58 | Thanked: 10 times | Joined on Dec 2009
#9
@hopbeat - Unfortunately you are right. But it also doesn't rule out the possibility of measuring.
"Some sensors have adjustments of the nominal range or means to report a graduated detection distance."

I seriously doubt that this one has this ability, which is a huugggeee disappointment. A lot of very interesting things could be done with it.

But, like kwotski says, someone please prove me wrong.

Btw. do I need to contact Nokia tech support for this, or are there some of them on this forum. I think they are the only ones who could answer this. Everything else is just speculation.
 
sampppa's Avatar
Posts: 166 | Thanked: 191 times | Joined on Dec 2007 @ Oulu, Finland
#10
I dont think you can get that info out in centimeters. It detects if something is "near" the sensor. This is used for example to detect if the phone is near the ear to shutdown display for power saving. (and also to know if device is in pocket?)
 
Reply


 
Forum Jump


All times are GMT. The time now is 09:38.