Slashdot Mirror


TI-Nspire Hack Enables User Programming

An anonymous reader writes "Texas Instruments' most recent, ARM-based series of graphing calculators, the TI-Nspire line, has long resisted users' efforts to run their own software. (Unlike other TI calculator models, which can be programmed either in BASIC, C, or assembly language, the Nspire only supports an extremely limited form of BASIC.) A bug in the Nspire's OS was recently discovered, however, which can be exploited to execute arbitrary machine code. Now the first version of a tool called Ndless has been released, enabling users, for the first time, to write and run their own C and assembly programs on the device. This opens up exciting new possibilities for these devices, which are extremely powerful compared to TI's other calculator offerings, but (thanks to the built-in software's limitations) have hitherto been largely ignored by the calculator programming community."

19 of 88 comments (clear)

  1. TI announced a new firmware release today by Anonymous Coward · · Score: 5, Funny

    It fixes some battery reporting issues and other minor bugs. All users are strongly encouraged to upgrade.

  2. WHY? by v1 · · Score: 2, Interesting

    WHY do they do that? I could see if they had either some expensive dev tool you had to use to make your own powerful apps, or if they were selling a much more expensive calculator that had all the programming options unlocked, but in this case I don't see any profit in it for TI to not let people program them?

    --
    I work for the Department of Redundancy Department.
    1. Re:WHY? by bacontaco · · Score: 4, Informative

      For many courses and standardized tests, only a few kinds of graphing calculators are allowed to be used. By allowing outside code to run on their calculators, TI risks losing their place on this list (and thus, sales) since those that administer these courses/tests might find out that TI's calculators allow outside programs to run that allow problems to be solved more easily.

    2. Re:WHY? by fuzzyfuzzyfungus · · Score: 4, Interesting

      Either it is reflexive control freakery or, more likely, it has to do with the demands of standardized testing.

      TI's calculator division makes its money(and justifies its margins, I'm not sure that the price of a TI-83 has fallen to anything except inflation since I had to buy one back in secondary school) by being the de-facto standard calculator for education. Sure, a few of the hardcore nerds in engineering still have their HP somethings, and anybody doing real crunching will graduate to a full computer running one of the mathematical packages; but TI is it everywhere else.

      The Wikipedia page mentions several features aimed specifically at educational testing: "The TI-Nspire also features a "testing mode" LED indicator, designed to stop potential cheating, informing test supervisors that the calculator is still denying access to saved files and possibly restricting geometry features on the handheld during the test. It also features a timer. At the end of a test, the supervisor is required to check the calculator's timer to see if it has not been removed out of "testing mode"." Essentially, because it is commonly used on tests, the educational customers who drive most of the sales(directly or indirectly, some districts purchase, some mandate, some just encourage) would really like the calculator to be a "trusted" black box capable of doing only what it says on the tin, not doing arbitrary computer tasks(like storing notes, or doing symbolic integration and differentiation when the kids are supposed to be learning that).

      If it is possible for people to write their own stuff, in something more than a crippled little scripting language, it becomes possible to subvert these testing controls.

    3. Re:WHY? by v1 · · Score: 3, Interesting

      This shows an interesting sliding window of sorts as to where the cutoff between allowed and not-allowed tools come into mathematics.

      Day used to be when we had to look up values in a Log table and be able to find roots by hand etc. Using a calculator for that back then would clearly have been cheating. Nowadays that's exactly why we have the calculators on a test, so we're not bogged down doing grindy math and can get to the task of computing derivatives and solving for x, and that has become the banned feature.

      I suppose ten years from now we'll have moved on and be working on more advanced mathematics, having left all of algebra to our calculators on the test...

      --
      I work for the Department of Redundancy Department.
    4. Re:WHY? by fuzzyfuzzyfungus · · Score: 3, Funny

      *Generic robotic female voice that does all PA announcements in the future*

      "All Turing qualified expert systems, sentient hypercomputers, and copies of Mathematica version 26 or higher, must give their binding asset to the College Board's Standard Code of Ethics for the Assistance of Puny Humans before being allowed entrance to the test chamber..."

    5. Re:WHY? by bhtooefr · · Score: 2, Interesting

      Except that's where a carefully written fake UI program that pretends to wipe the calculator memory when the teacher goes through the menus comes in handy. Special key combo, calc drops into the real UI, and all of your stuff is intact.

      (Or, if the calc's an HP 49g+ or 50g, you can just move everything off to an SD or MMC card, pocket the card before going into the class, and after resetting and going to your desk, insert it.)

    6. Re:WHY? by 0100010001010011 · · Score: 3, Interesting

      I did this for all my Mechanical Engineering courses. I figured for some tests I would spend upwards of 20 hours programming... It just ended up being my way to study. By time I tested all scenarios, worked out problems by hand to make sure that my equations worked and debugged it some more, I had the equations memorized.

      It did save my ass a few times when I made a stupid sign mistake ON the test, but my debugged program gave me the right answer. Went back and double checked my work, and found the sign error.

      I also had it print out every step of the solving process so in a pinch (time running out) I could just copy from my calculator screen and get credit for full work.

      500 lines of code gets quite tedious after a while on a TI-89 screen.

    7. Re:WHY? by jonwil · · Score: 2, Informative

      what will happen is that the smart kids will write the programs and the dumb kids will copy them from the smart kids (or from the Internet) and then just run them and copy the results (including the "working" displayed by the program), thus learning nothing.

    8. Re:WHY? by ChrisMP1 · · Score: 2, Insightful

      So what? They're already dumb -- either they cheat on the test and learn nothing, or they cram for the test, forget it the next day and learn nothing. You know what they say about leading horses to water...

      --
      <sig>&nbsp;</sig>
  3. Re:ti in the past never really supported assembly/ by Dwedit · · Score: 4, Informative

    The TI83 and TI86 had an ASM command for running assembly-language code without requiring a hacked memory backup. (on the original TI83, the ASM command was 'Send(9', but later models used an actual 'Asm(' command.)

  4. Re:ti in the past never really supported assembly/ by langelgjm · · Score: 4, Interesting

    What's more, TI actually released assembly programs that would install new features on the calculator. I have a TI-86 from years ago and just recently installed a TI-provided statistics package that gives me the various distributions, test, etc.

    --
    "Anyone who [rips a CD] is probably engaging in copyright infringement." - David O. Carson
  5. Re:What's the point? by Sir_Lewk · · Score: 4, Insightful

    It's the fact that it is such a limited piece of hardware that makes it interesting. These people are hackers in the most flattering sense of the term, they take resources that they have and make something more. They get their kicks by seeing what different things they can make calculators do that they were never supposed to, and by besting TI in all things calculators. If you can't see the value or fun in any of that, then quite simply you just lack a proper hacker mindset and I feel sorry for you.

    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  6. Game Boy Color Emulator by allynfolksjr · · Score: 5, Informative

    Seems the developers have had some projects stored away until Ndless was released:

    http://www.ticalc.org/archives/files/fileinfo/426/42630.html

    From the program description: "gbc4nspire is a Game Boy and Game Boy Color emulator for the TI-Nspire and TI-Nspire CAS, written from scratch in ARM assembly"

    Pretty impressive, if you ask me.

  7. We need a cheaper calculator by davidwr · · Score: 2, Informative

    High schools and colleges need to get together and encourage industry to make a much-cheaper calculator that is "good" through college math courses that non-technical majors typically take AND good through AB/AP/etc. high school courses as well as all common college entrance exams.

    In practice, this would mean 2nd or 3rd semester Calculus.

    Think "one laptop per child" but a calculator. This shouldn't run over $40 in America.

    Of course, the whole idea of a hand-held dedicated student calculator that students have to spend $80+ on will be moot in a few years. Schools and testing centers will provide calculators for on-site use and students will have "calculator apps" on their cell phones for homework.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  8. Re:What's the point? by spiffmastercow · · Score: 2, Insightful

    It's not the concept I have a problem understanding, it's the target. Compare this with, say, Nintendo DS, iPhone, or XBox hacking. Once you crack the security on these devices, you get access to:

    DS - 3D accellerator hardware, cool touchscreen stuff, NES style controller,
    iPhone - too much cool stuff to list (though not as appealing now that there's an officially supported SDK),
    XBox - a powerful (at the time) console that can handle network functionality and play video, or
    Calculator - a bunch of buttons and 100 or so monochrome pixels.

    No doubt it was fun for the guy who cracked it to allow it to run custom code.. But I can't think of anything you could do with a handheld calculator that would really improve upon the capabilitie it had when it left the factory. So basically what I'm saying here is that it's cool someone cracked it, but I'm having a hard time understanding why there would actually be a home brew community rallying to this platform.

  9. Re:TI-Calc love by Jon+Abbott · · Score: 2, Interesting

    Plus there is STILL no good method for entering equations on computers

    I recommend LyX, a front-end to latex. When I was in college I was able to take equation-heavy notes real-time in class. My notes usually looked much better than the professor's official class notes as well. LyX does have a learning curve, but you can always remap the keys to whatever you are used to.

  10. Re:What's the point? by Sir_Lewk · · Score: 2, Interesting

    The thing with the nspires is they are completely worthless. Complete crap, sure they do arithmetic fine, but besides that they do nothing. What this crack does is allow people to program it, without it there wasn't even the possibility of any sort of "homebrew" community for this calculator.

    I still don't think you are getting the concept here though. Unlike programming on other platforms, programming on calculators isn't so much a means to an end, it is the end. People don't program them because they want to do fun things with them (though that often is a side effect), they program them because the very act of doing so is fun. The platform provides a very limited set of resources and very tight constraints on things that you want to do, it's this challenge that makes it so popular.

    You point at the crappy hardware and say, "Why?". We point at the crappy hardware and say, "That's why."

    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  11. Square root button by krischik · · Score: 2, Interesting