|
2010-06-06
, 06:03
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#42
|
This is one of those cases where i would say "Pics or it didn't happen." While i agree in theory it's possible, i'm far too lazy and pessimistic to go to all that trouble without demonstration of an operational prototype on the N900.
How would you design the software to minimize battery use? I expect sound processing is a bit cycle intensive (pun intended).
|
2010-06-06
, 11:07
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#43
|
|
2010-06-06
, 12:46
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#44
|
Well, I've finished soldering. Hardware works and "clicks" are recorded by maemo-recorder. More detailed description will be available soon.
The Following User Says Thank You to Flandry For This Useful Post: | ||
|
2010-06-06
, 13:41
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#45
|
Hey, what about wiring it so that the reed switch is closing the circuit used for the headset button? No need to process audio at all!
Polling this device node shows the status: http://talk.maemo.org/showpost.php?p...5&postcount=64
If you want i can make some code to do it and show the frequency.
The only potential problem is see is device file not being updated at a high enough frequency to be accurate, but it's worth a try since it's easy and you've already got the hardware bit. We've lost the mic usage by your method so no additional lost functionality (i think).
The only thing a quick google about how the button is wired turned up is this:
http://webcache.googleusercontent.co...ient=firefox-a
Whether it's the same for the N900 headset i couldn't say, but i could check it out at work with a multimeter on Monday.
I might actually have to make one of these myself.
|
2010-06-06
, 13:49
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#46
|
The Following User Says Thank You to KiberGus For This Useful Post: | ||
|
2010-06-06
, 15:09
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#47
|
Flandry, thanks, with my schematic
cat /sys/devices/platform/nokia-av/detect
gives 4 when reed is not shorted and 0 if it is shorted. So it is possible to poll /sys/devices/platform/nokia-av/detect or, may be, if for this file urgent reed events are generated, we could even make this effective.
|
2010-06-06
, 21:05
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#48
|
|
2010-06-07
, 13:42
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#49
|
No time towrite normal text now, may be tomorrow. So just several photos with needed details, scheme and resulting construction. I didn't added headphones nest because appropriate part was absent in a shop.
http://kibergus.su/?q=gallery&g2_itemId=183
P.S. I don't have phone mount yet. Don't askabout it.
Flandry, should I bother with writing software or you already did it?
|
2010-06-07
, 17:52
|
Posts: 254 |
Thanked: 122 times |
Joined on Nov 2009
|
#50
|
How would you design the software to minimize battery use? I expect sound processing is a bit cycle intensive (pun intended).
Unofficial PR1.3/Meego 1.1 FAQ
Accelemymote: make your accelerometer more joy-ful