From Zero to Homebrew!
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
smartapp-tool.plPerl script for printing information about a SmartApp, and dumping the binary portion to disk.pl - 5.97 kB - 05/15/2018 at 15:25 |
|
Installable binary files to the AlphaSmart device have an extension ".os3kapp". Several of these come with the official AlphaSmart NEO Manager software - the tool used to link a NEO to PC and perform software updates, copy files, manage classroom activities, etc.
What makes an os3kapp tick? Lucky me, someone has already worked out most of the wrapper format as part of an open, OSX version of the NEO File Manager - take a look at tSoniq's "AlphaSync" code here: https://github.com/tSoniq/alphasync This is the same person who figured out the font code and produced a font editor.
Here's a spec. This being the Motorola 68000, all values are BIG ENDIAN.
Settings are a weird bunch that deserve extra mention. They control SmartApplets behavior on the device, but are also parsed by the GUI in NeoManager and used to build a special Settings panel. This allows control of the settings from the PC before copying an installation to a bunch of NEO in the field.
Using this info, I was able to knock together a decoder in Perl (project Files section) that prints information about a SmartApplet. It also dumps the 68k binary content into a .bin file, which I can load to a disassembler to see how it ticks. Here is Beamer.os3kapp, the IR communications tool.
grkenn@server:~/src/AlphaSmart % ./smartapp-tool.pl...Read more »
I was going to open up my NEO unit to see what's inside. But, fortunately, people have already done that. There is a CR2032 coin-cell inside that serves as backup to retain SRAM while the AA batteries are removed. Some power users have opened their units to replace the lithium backup battery, and photographed the innards.
https://www.flickr.com/photos/83235901@N00/5347018436/
https://www.flickr.com/photos/83235901@N00/5346409483/
So, what have we here? Well, there's...
Based on how the device functions: the system appears to store the OS and applications on the flash chip, do all computation using the processor within the SoC and attached SRAM temp area, and store the users' writing on the SRAM too. This makes a lot of sense, because the device is from the Early Days of flashmem, and it would be smart to limit the number of writes to the chip - like, don't save every time a key is pressed. Also, if the batteries run out, the OS and apps won't disappear : )
Disappointingly, it doesn't appear possible to give space to the text editor at the expense of apps. They live in separate RAM environments. Scratch that long-requested feature off the list.
The USB opens up possibility to read and write to an external drive...
When you install the NEO Manager software, it unpacks a number of files of format ".os3kapp". These are the SmartApplets that you can install to the device. Now that we know the CPU architecture, and we have local dumps of the applications, maybe it's time to dig up a 68000 disassembler.
A recent comment on the Hackaday blog (https://hackaday.com/2017/06/24/a-goldmine-of-radio-shack-goodies-is-up-for-auction/#comment-3700073) turned me on to this sweet piece of hardware. I decided I should snap one up, certainly before NaNoWriMo season kicks into high gear and the price shoots up again.
It arrived today. There is great potential here, and largely untapped too - the sum total of knowledge about this device now lives on in this Flickr group: https://www.flickr.com/groups/alphasmart/discuss/
This device connects to a PC via USB. Without special drivers, it emulates a USB Keyboard when attached. Users can open Notepad, attach the NEO, then hit a key to "upload" their document by having it type out the letters one by one. There is also a NEO Manager application, and special drivers, which allow two-way communication. This is used to update firmware or flash new "SmartApplets", the name for programs that execute on the NEO.
There are multiple versions of AlphaSmart hardware: the 3000 is the oldest in the series, then the NEO, and the NEO 2 (which is like the NEO except it includes a proprietary radio system to link other NEO 2s in a classroom setting). There is also the Dana, which is actually a PalmOS device and very different.
All told, there hasn't been much done on the hacking front. Users do a fair bit of case modding by repainting with vinyl dye. Someone has cracked the font format and produced a font editor (http://tsoniq.com/software/legacy/neo-fonts/). Most SmartApplets are distributed by the now-defunct manufacturer: there are two commercial apps "Co:Writer" and "Inspiration Outliner" that have long since passed out of their customer service life, and not a lick of homebrew code to be found.
Yet.
Create an account to leave a comment. Already have an account? Log In.
I'm so hype for this. I'm a computer science student with a creative writing degree so you know I've got two neos haha. But I don't have quite the chops to have gotten very far on my own yet in terms of hacking the neo. I had basically found tSoniq's stuff and got lost trying to grok it.
Just got mine, and until now I hadn't seen anyone else who had worked on hacking the Neo 2. Glad to see this, though! It will be very helpful :)
This is an interesting project. I myself was obsessed with the idea of owning a small text terminal device. I got the Girltech Im:me but was quite disappointed. This one looks like a much better text terminal.
Interesting. the first time I saw one of these was at the hackaday event in munich in 2014 :)
Become a member to follow this project and never miss any updates
I look forward to seeing how this project progresses. I too want a distraction-free writing tool for my next NaNoWriMo attempt. Since my own home-brew word processor won't be ready in time, I opted to buy a Neo today so I have something portable to write on. Postage from the US to Aus is obscene BTW.