Reply
Thread Tools
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#1
Hello,

yesterday appeared a page on the maemo wiki about the accelerometers features in fremantle. In this page is suggested a example application, and a deb file (compiled to arm) is provided.

How should we use it ? or it's just for internal use/future code example ?

Since I'm very interested in the accelerometer features of fremantle, I have a couple of harmless questions (if this information can be disclosed now).

Is possible to set/get the sample rate and threshold via sysfs ?

The accelerometers d-bus code is OSS or will be ?

Thanks.
__________________
Valério Valério
www.valeriovalerio.org

Last edited by VDVsx; 2009-05-21 at 11:14. Reason: added wiki link
 

The Following 4 Users Say Thank You to VDVsx For This Useful Post:
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#2
interesting

i wonder if we could hack something together using the wiimote drivers to give similar results.

tape wiimote to bottom of 810 and see if it works, or plugin one of the mini usb ones ive seen knocking about.
i doubt we could replicate the dbus part, but the sysfs portion looks feasible for a fake driver to supply.
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following User Says Thank You to lcuk For This Useful Post:
yerga's Avatar
Posts: 696 | Thanked: 1,012 times | Joined on Mar 2006 @ Asturies, Spain
#3
I have compiled the app for X86 to test it in the SDK, but it fails with a nice core dump:
Code:
ERROR:sand.c:285:main: assertion failed: (dbus_proxy)
/usr/bin/run-standalone.sh: line 11: 23643 Aborted                 (core dumped) "$@"
__________________
Daniel Martín Yerga
maemo.org profile
Twitter
 

The Following 2 Users Say Thank You to yerga For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#4
Might be best to look at the kernel code and see what the driver does (assuming we have the relevant bit), apparently the scaling, etc., to produce a value in milli-gs is done in there.
 

The Following User Says Thank You to lardman For This Useful Post:
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#5
Originally Posted by lardman View Post
Might be best to look at the kernel code and see what the driver does (assuming we have the relevant bit), apparently the scaling, etc., to produce a value in milli-gs is done in there.
Yeah, the driver is there: /kernel-2.6.28/drivers/hwmon/lis3lv02d.c
But depends how the system use it
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
Lord Raiden's Avatar
Posts: 1,562 | Thanked: 349 times | Joined on Jun 2008
#6
Ya know, if the next NIT has an accelerometer in it, I'm so gonna be stoked. That in itself has so many uses that I can't even name them all.
__________________
Popular Sci-Fi author and creator of the Earthfleet Series.
www.realmsofimagination.net
 

The Following User Says Thank You to Lord Raiden For This Useful Post:
qgil's Avatar
Posts: 3,105 | Thanked: 11,088 times | Joined on Jul 2007 @ Mountain View (CA, USA)
#7
Hi, yes I published that page yesterday but then I went for other things and forgot to link it somewhere.

Basically is the best I could get to answer a question that was coming from the NumptyPhysics developer and others. Hopefully a better interface and documentation will come, but in the meantime you have the basics there.

About the little app, please contact marnanel directly. I'm sure he is willing to share his own findings but I don't expect him to be aware of this thread here. I have seen the app working but that's all I know about it.
 

The Following 5 Users Say Thank You to qgil For This Useful Post:
VDVsx's Avatar
Posts: 1,070 | Thanked: 1,604 times | Joined on Sep 2008 @ Helsinki
#8
Originally Posted by qgil View Post
I have seen the app working but that's all I know about it.
In a Fremantle prototype device right ?

Thanks.
__________________
Valério Valério
www.valeriovalerio.org
 

The Following User Says Thank You to VDVsx For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#9
But depends how the system use it
I was assuming the sysfs entry code would also be present. I can't look myself atm as I'm running on WinXP (can't apply the diff easily), but will have a look through later on.
 

The Following 3 Users Say Thank You to lardman For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#10
Ah no worries, just looked in the patch. Take a look at the following file: /drivers/i2c/chips/lis302dl.c
 

The Following 3 Users Say Thank You to lardman For This Useful Post:
Reply

Tags
accelerometer, fremantle


 
Forum Jump


All times are GMT. The time now is 05:11.