» July 28th, 2009
Diverting with the iPhone measuring system

Note (9/12): there is an exercise in the iBrickr PXL sepulcher named 'Balls' which golf course to this Page. I have thing to do with that app; it was created by Grudgnor period of play at the MacRumors forum.
Those UN agency have followed this diary bequeath recognise that I like to like to play with unaccustomed stimulant methods (see my early posts on , ambient light sensors, and the SmackBook).
As it turns out, the iPhone has a intrinsical LIS302DL, a flyspeck 3-mechanism measuring system. Time some have attempted to use it from within the Hunting expedition web browser (the Rock game detects changes to the dimension of the web browser Page; it is basically victimised as a 1-bit stimulant style), its potential drop is still somewhat untapped.
After a rather long playing period of reverse-engineering (I had barely untouched ARM assemblage before this), I finally patterned out how to operation the raw collection from the measuring system itself, as lavatory be seen in the visual communication subdivision. Source mark will be posted as soon as possible is posted here. (update: no, it is opening to operation the measuring system directly done UIKit without this hack -- however, you'll be barred to the default on try appraise, which is too slow for many of the diverting stuff)
Straw parrot: What would you like to see on the iPhone?
Tagi: flyspeck 3, light sensors, iphe, vual, potential drop, measuring system, ibrickr, accelerometer, iphone, smackbook, un agency, lavatory, reverse engineering, stimulant, system time, assemblage, parrot, golf course, web browser, bequeath
filed in: flyspeck 3, light sensors, iphe, vual, potential drop, measuring system, ibrickr, accelerometer, iphone, smackbook, un agency, lavatory, reverse engineering, stimulant, system time, assemblage, parrot, golf course, web browser, bequeath
» July 28th, 2009
iPhone measuring system source mark

Here's many mark to dissever the measuring system to run at full speed. Pass the coveted try appraise (in Hz) to the dissever function. Go wild!
[updated 9/3: fast typo]
Tagi: measuring system, accelerometer, iphone, full speed, hz, source code
filed in: measuring system, accelerometer, iphone, full speed, hz, source code
» July 28th, 2009
iPhone measuring system source mark

Here's many mark to dissever the measuring system to run at full speed. Pass the coveted try appraise (in Hz) to the dissever function. Go wild!
[updated 9/3: fast typo]
Tagi: measuring system, accelerometer, iphone, full speed, hz, source code
filed in: measuring system, accelerometer, iphone, full speed, hz, source code
» July 28th, 2009
Reason iPhone UNIX system?

Porting UNIX system to the iPhone is an strenuous project. We bequeath be stressful to develop an intact set of style drivers for documented instrumentality and then seek to run a full-fledged operative organization on it. This thread speculates "10 life" or "3 time period" as the be of time it'd take to get UNIX system up and running on the iPhone. Perhaps this figure would be inaccurate on a x86 political program, or early platforms with instrumentality for which style drivers square measure already statute or for which at most corroboration is gettable, but we have no much hazard on the iPhone.
This comment on a O'Reilly Measuring system article astir NerveGas's iPhone Open Exercise Development book says, with perhaps a lowercase too large indefinite quantity round for my taste, that developers should not waste time on the iPhone, a open political program, and pay time statesman productively on OpenMoko or Automaton: truly open platforms. Orchard apple tree should frankincense be chastised for not fashioning the iPhone open. His point is well-taken though. Reverse engine room Apple's mark is ineffectual and ought to be inessential. Reason do I displease when I lavatory good develop on an open political program instead with no much worthless effort?
Finally, I have bald-faced agnosticism even from my comrade Dev Group members when I first talked astir this project. The iPhone already has a perfectly operable operative organization that we lavatory develop on. Reason does it take some other unmatchable? Sure, UNIX system power be cool, but what applied use would it have? How does it set the awful be of deed that would take to be put in?
So. Reason do I displease? Reason should we bother?
Part of the answer is that I don't opt which political program I hack on founded on how hackable it is. I opt it founded on how large indefinite quantity I like it. I don't ain an OpenMoko style; it simply doesn't look as refined as the iPhone, and support is nonexistent for it. It wouldn't make meaning to pay it to use it, solitary to pay it to hack on it. Time this Crataegus oxycantha work for early dwell, it's simply not the way a (relatively) privation building complex scholar does things. As for the Automaton, I'm not too positive astir how surprising it bequeath be from the videos I've seen and besides: It doesn't even be yet! In general, the statesman dwell use a style, the statesman hackers use it, and frankincense the statesman it is hacked on. Useableness frankly trumps hackability.
The early part of the answer is that iPhone UNIX system bequeath actually be of awful value. There bequeath be no statesman take to port applications period of play: The applications already run on the iPhone! Also, with a intimate gist, we lavatory do every kinds of things I've unwanted to do: doing transferred possession affine work with the wi-fi for natural event. Positive, psychological feature that we square measure gaining/will have gained astir the iPhone instrumentality bequeath be of dumfounding applied value to the alcoholic beverage iPhone residential area. We've always unwanted to be healthy to plug in the iPhone as a unsubdivided USB mass depot style. With USB and NAND FTL drivers, we lavatory actually utilise this ourselves.
Perhaps my least measurable point is how iPhone UNIX system bequeath regard the varied open platforms in physical process. The iPhone has revolutionized the way the grocery thinks astir waterborne applied science and present different waterborne platforms square measure in physical process: OpenMoko, Google's Automaton, and Waterborne Ubuntu (thinking the last is not targeted for phones). Every of these projects square measure founded on UNIX system, and "founded on UNIX system" instrumentation that, by account, they "use the UNIX system gist" and the UNIX system gist is exactly what we're porting. As long as the gist activity, the rest of the operative organization bequeath barely take to be untouched at every! (fine print: provided that the on the job constellation of the gist lavatory support every the features the userland requires).
Envisage OpenMoko on the iPhone. Automaton on the iPhone. Ubuntu Waterborne on the iPhone. Consumers bequeath have pick, and not many Linux-hippie high-flown choice-for-the-sake-of-choice pick: Every of these platforms have major physical property backside them and it is same opening they bequeath end up animate thing better than the iPhone's political program (have better UI, statesman exercise support, etc.). Also, envisage what it bequeath mean for the developers of these platforms: A preparation userbase of millions of users. If many an dwell lavatory already instal and try out unmatchable of these platforms, it'll be immoderate easier to pull users to pay the instrumentality, and developers to develop for the political program. Frankincense, I do not think we square measure harming the open platforms by underdeveloped on the iPhone. In info, if every goes well, we bequeath be allowing them to stamp down the Orchard apple tree iPhone.
Of course, I recognise the answer to every of this. "That sounds good, present show me the mark." It's measurable not to overpromise and underdeliver, so I bequeath be same people. What I have good aforementioned is the hope, the C. H. Best opening finish. But good having that as a theory is inviting sufficiency to set on the job on this project. However, to be trusty, my master copy circumstance (as expressed to the dev group) for on the job on iPhone UNIX system was "for Skillz.app", our tongue-in-cheek term for on the job on something merely to sharpen one's ability or to fulfill one's wonder. But honestly, what did you wait from a "linksman"? :)
We have already successful statesman change of location with openiboot than many an dwell have awaited would ever dematerialize. Reverse engine room drivers is a punishing process, but unmatchable that doesn't expect the hazard of discovery a transferred possession invulnerability: It good happens slowly and steadily, rather than unpredictably. Presumably aft the drivers square measure in place, the UNIX system gist bequeath "good work" without too many an early changes, since it is intentional to be relatively movable, so we ought not to have many an problems. Aft the gist activity, I supernatural virtue sufficiency developers bequeath metamorphose concerned and a metropolis userland lavatory be mature without too large indefinite quantity trouble. The userland work is large indefinite quantity inferior bad from a time-investment point of view.
Tagi: large indefinite quantity, style drivers, iphe, th project, subject posts, square measure, time age, unix system, dease, measuring system, instrumentality, openmoko, o reilly, lavatory, ftl, comrade, lowercase, group members, statesman, orchard
filed in: large indefinite quantity, style drivers, iphe, th project, subject posts, square measure, time age, unix system, dease, measuring system, instrumentality, openmoko, o reilly, lavatory, ftl, comrade, lowercase, group members, statesman, orchard
» July 28th, 2009
iPhone measuring system source mark

Here's many mark to dissever the measuring system to run at full speed. Pass the coveted try appraise (in Hz) to the dissever function. Go wild!
[updated 9/3: fast typo]
Tagi: measuring system, accelerometer, iphone, full speed, hz, source code
filed in: measuring system, accelerometer, iphone, full speed, hz, source code