TILP2 1.18 - cannot dump ROM from TI Nspire.
In addition - cannot transfer some of the Documents from the calculator.
Built using install_tilp.sh script on Ubuntu 12.04.4
Reported error: Invalid packet. Cause: a transmission error.
Excerpt of info/debug/error messages (terminal):
<snip>
ticalcs-INFO: 6401:00ff->6400:8006 AK=0a SQ=27 HC=72 DC=6040 (2 bytes)
ticalcs-INFO: 40 60
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
ticables-INFO: found bulk in endpoint 0x81
ticables-INFO: found bulk out endpoint 0x01
<snip>
For trying to transfer document from the calc (most documents transfer ok):
ticalcs-INFO: Requesting variable '<name redacted="">':
ticalcs-INFO: opening session from port #8009 to port #4060:
ticalcs-INFO: requesting variable:
ticalcs-INFO: 6400:8009->6401:4060 AK=00 SQ=04 HC=00 DC=94b9 (23 bytes)
ticalcs-INFO: 07 01 2F 4D 79 ..... 2E 74 6E 73 00
ticalcs-INFO: receiving ack:
ticalcs-INFO: 0000:4003->0000:4003 AK=00 SQ=01 HC=d5 DC=ec0f (2 bytes)
ticalcs-INFO: 0F EC
ticalcs-INFO: XXX weird src_port
ticalcs-INFO: XXX weird .dst_port
ticalcs-INFO: XXX weird addr
ticalcs-INFO: XXX weird .ack
ticables-INFO: found TI-Nspire(tm) Handheld on #1, version <1.05>
For the Nspire, "ROM dumping" only dumps the OS, and the method used (exploiting a dumb directory traversal hole) works only on the old OS 1.x versions, as indicated by a trace.
Implementing a more generic OS dumping method has been on the TODO list for a while, but I don't have time for that at the moment. Implementing a full dump of the NAND Flash memory would require a calculator-side, Ndless-based program, and even more code in libticalcs...
Transfer failures in the calculator -> computer direction are rather infrequent nowadays. Did you transfer a single file at a time ?
Thanks for a speedy reply, Lionel.
First - about the file(s) transfer.
Indeed, at first I tried to transfer multiple files in a single transfer and every third (approximately) file would fail.
Then I switched to transferring one-by-one and most of the transfers succeeded.
However there are still 2 files that fail consistently.
Typically it is preceded by a time-out error message when trying to transfer the problematic files. Retry does not work (i.e. fails).
The original error messages I posted are from a single file transfer of one of the problematic files.
Regarding ROM dumping - seems to me it'd be great if at least the OS could be dumped (both for downgrading purposes and for running the ROM in an emulator).
In addition, there seems to be no way to upgrade the OS using TILP from the computer (Linux), a functionality that would greatly be appreciated since it'd remove completely the need to use any TI proprietary Windows-based software.
Another highly desired feature would be unlocking of the "Press-to-Test" mode from Linux host (using TILP).
Thank you for efforts you have invested in TILP.
Last edit: James B. 2014-08-28
An interesting file transfer test would be to create files of the same size (content doesn't matter), attempt to transfer these files to the calculator, and transfer them back to the computer (under the same name as the troublesome files, and a fresh name).
Two unlikely causes of your issues:
- are the files either nested deeper than a single folder level (but then you couldn't select them), or outside any folder, at the root of the documents part of the filesystem ? Neither case is supported by libticalcs and TILP. Fulfilling this todo list item might be less easy than it could seem, as the entire code base assumes that there's never more than a single level of folders.
- does the full calculator-side path name of those files contain special characters ? Unlikely, as libticalcs is supposed to be clean wrt. UTF-8.
Recent OS upgrade files can be freely downloaded from TI's site, and older versions can be downloaded from TI-Planet (which links to TI's site, as much as possible, as long as the files are still available). This reduces the usefulness for Nspire OS dumping in libticalcs :)
TILP can definitely upgrade a Nspire's OS, since before I became the maintainer in 2009. I don't remember using TINC(L)S myself for OS upgrade purposes.
Automatically exiting the PTT mode through several clicks (instead of letting the user create the appropriately named empty file, then drag&drop it to the calculator pane) is another feature request, turned todo list item, that I haven't implemented yet :)
You're welcome. I fixed bugs and added features, integrated contributions, but the bulk of the work on libticonv/libtifiles/libticables/libticalcs, gfm and tilp was done mainly by Romain Liévin, again with other persons' contributions, before I became the maintainer :)
(and I derived libhpcalcs from the libti* family, keeping a number of good concepts but not basing it on glib - but that's not relevant to TI calculators)