Author Topic: Tilp isn't working!  (Read 12556 times)

0 Members and 1 Guest are viewing this topic.

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Tilp isn't working!
« on: September 08, 2012, 12:42:58 pm »
I can't get Tilp to work!
The GUI looks fine, but upon searching for a calc, it says "Can't set cable". And since it can't connect to a calculator, it's entirely useless...
I can't upload or download any files unless I strart up my corrupted-beyond-repair Windows OS partition to use TI Connect...

Information:

Computer:
Spoiler For Computer:
Dell Inspiron 1545
Sometimes the touchpad mouse doesn't work...
Originally shipped with Windows Vista, then got dropped - causing a broken hard drive. Then a new hard drive was installed (idk what brand) with a pirated Windows 7. (Not my intention, those computer guys put it on the hard drive pirated w/out telling me it was pirated.)
Used Wubi to install Ubuntu 12.04, then Windoze thought it was corrupt and "repaired" the system, corrupting it.
Used USB stick to install Ubuntu 10.10
Later, uninstalled Ubuntu 12.04 and installed it again with Wubi
Since the "corruption repair", Windoze has wanted to keep repairing every time I start up - It'll probably mess up Ubuntu 12.04 again...
So it's hard to use Windoze...
Tilp info:
Spoiler For Tilp installation info:
Installed with command "sudo apt-get install tilp", launched with command "tilp" or by clicking button.
It's never worked since I installed it.
Calculator info:
Spoiler For Calculator:
TI 84+SE, bought around March
Linking with a black Male->Female USB cable...

Please help!
« Last Edit: September 09, 2012, 07:29:04 pm by dinosteven »

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Tilp isn't working!
« Reply #1 on: September 08, 2012, 12:47:30 pm »
Also, I'm not sure if this is the right place for this topic. Please move it if it's not.

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tilp isn't working!
« Reply #2 on: September 08, 2012, 02:31:24 pm »
From the moderators' POV, it's probably not the appropriate section - but the fact that you posted in this section notified me (it's one of the few sections I'm subscribed to), so from my POV, you did it right ^^

Your problem report is quite detailed, which is a good thing :)

The Ubuntu packages are very outdated, especially if you're trying to communicate with a Nspire - but it has fixes and improvements all over the board.
You'll have to compile TILP yourself using http://lpg.ticalc.org/prj_tilp/download/install_tilp.sh . Be sure to either look inside the script to know which packages you need to install, or search the forum for other topics where the ready-made `sudo apt-get install ...` command is written ;)

BTW, unlike the severely outdated Ubuntu packages version, the latest version will attempt to auto-detect the calculator and cable model, so that you don't have to perform the configuration yourself. No, or improper, configuration is one of the leading causes of "TILP doesn't work".

And should you experience any problems, the somewhat verbose (at times) terminal output is the most useful debugging tool for the maintainer.
« Last Edit: September 08, 2012, 02:36:18 pm by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Tilp isn't working!
« Reply #3 on: September 08, 2012, 05:48:31 pm »
What does this mean?
Msg: attempting to use a cable which has not been open before.
Cause: Internal error.
System: Operation not permitted (errno = 1)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Tilp isn't working!
« Reply #4 on: September 08, 2012, 06:15:07 pm »
Try running TiLP as root, should do the trick. (sudo tilp)

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Tilp isn't working!
« Reply #5 on: September 08, 2012, 07:43:01 pm »
It sends files now!
Unfortunately, it still can't detect my calc and therefore I can't upload to my computer.
Which cable is it? Direct link, right? And which port do I need to use? (yes, I have "USB scan at startup" checked)

Here's the error then attempting to connect:
Spoiler For Spoiler:
Msg: failed to open the USB device.
Cause: Check that the USB cable is plugged in and that the calculator is turned ON! Also, check libusb and usbfs for valid permissions.
System: Inappropriate ioctl for device (errno = 25)
Also, when checking for calcs, terminal spat out:
Spoiler For Spoiler:

(tilp:4553): ticables-WARNING **: no devices found!

1: 0 0 0 0
2: 0 0 0 0
3: 0 0 0 0
4: 0 0 0 0
5: 1 0 0 0
1: 00 00 00 00
2: 00 00 00 00
3: 00 00 00 00
4: 00 00 00 00
5: 13 00 00 00
« Last Edit: September 08, 2012, 07:49:36 pm by dinosteven »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tilp isn't working!
« Reply #6 on: September 09, 2012, 03:05:42 am »
DirectLink, port #1 should do the job.

Does your previous message mean that you can send files to the calculator, but not receive from the calculator ? Taken literally, "It sends files now!" and "it still can't detect my calc" are contradictory.

Have you now compiled libti*/gfm/tilp yourself ?
« Last Edit: September 09, 2012, 03:06:16 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Tilp isn't working!
« Reply #7 on: September 09, 2012, 09:19:47 am »
I'm using DirectLink, port #1.
The problem is, it doesn't detect anything on the calc. When clicking the "refresh" button or attempting to backup the calc, Tilp crashes and the terminal spits out:

** (tilp:24205): ERROR **: Invalid byte sequence in conversion input

However, after sending a program, the program appeared on my calc's prgm list! Weird, I don't know why.

I have no idea what "libti*/gfm/tilp" is... Sorry, I'm a noob at this.
« Last Edit: September 09, 2012, 09:32:25 am by dinosteven »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tilp isn't working!
« Reply #8 on: September 09, 2012, 09:32:07 am »
I meant, have you used install_tilp.sh to build TILP ? :)
On Ubuntu 12.04, the TILP II version is 1.13 (it should tell you so in the terminal), which is more than three years old. As I mentioned above, there have been many improvements in the code base since then (including recent changes that should reduce the chance of character-encoding-related trouble). Please get a recent version of TILP through install_tilp.sh, TILP II 1.13 has been unsupported for a long time ;)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Tilp isn't working!
« Reply #9 on: September 09, 2012, 09:51:50 am »
http://ourl.ca/12289 contains some details on how to use that script.
Shouldn't be too hard to follow :)

Offline dinosteven

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 194
  • Rating: +10/-1
    • View Profile
Re: Tilp isn't working!
« Reply #10 on: September 09, 2012, 10:18:41 pm »
Wait so I can't use the standard ">./configure >sudo make >sudo make install"?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tilp isn't working!
« Reply #11 on: September 10, 2012, 01:15:50 am »
That's indeed what the core of install_tilp.sh does, as libticonv, libtifiles, libticables, libticalcs (collectively known as "libti*"), gfm and tilp are based on autotools.

However, install_tilp.sh does much more than this: some sanity checking, friendly reminders at the beginning and at the end, downloading the latest development sources for each of the six pieces (either as a whole, or just updating them if a working copy is found), building the six pieces in the appropriate order, and stopping upon the first error (if any - this script has been used successfully by dozens of persons on a variety of Linux distros, especially Debian and its derivatives, so by now, errors are almost always due to the user) :)

TILP and gfm aren't the only users of libti*, there are also TIEmu (TI-68k emulator) and TilEm (TI-Z80 emulator). Having a single common code base for multiple clients is the reason why libti* exist in the first place. 4 libraries may seem a lot, but in fact, that's too low, the code base is not modular enough.
« Last Edit: September 10, 2012, 01:52:27 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Tilp isn't working!
« Reply #12 on: September 10, 2012, 01:33:11 am »
Using that post, just installed it on Ubuntu 12.04 on a flash drive, it's working with the CX \o/
Vy'o'us pleorsdti thl'e gjaemue

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Tilp isn't working!
« Reply #13 on: September 14, 2012, 06:25:17 pm »
i can't get it to build under 64 bit arch. it fails to compile libticables:
Code: [Select]
make[2]: Entering directory `/root/lpg/tilp/libticables/tests'
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -D__LINUX__ -fvisibility=hidden   -o test_ticables_2 test_ticables_2.o ../src/libticables2.la
libtool: link: gcc -g -O2 -D__LINUX__ -fvisibility=hidden -o .libs/test_ticables_2 test_ticables_2.o  ../src/.libs/libticables2.so
../src/.libs/libticables2.so: undefined reference to `usb_error_type'
../src/.libs/libticables2.so: undefined reference to `usb_debug'
../src/.libs/libticables2.so: undefined reference to `usb_error_str'
collect2: error: ld returned 1 exit status
make[2]: *** [test_ticables_2] Error 1
make[2]: Leaving directory `/root/lpg/tilp/libticables/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lpg/tilp/libticables'
make: *** [all] Error 2

i thought this may have something to do with the warning in the script that not using libusb 1.0 may cause things to fail, but it appears that i have libusb-1.0.so.0.1.0 installed. what else could be the problem here?

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Tilp isn't working!
« Reply #14 on: September 15, 2012, 01:41:11 am »
You need to modify install_tilp.sh so as to use libusb 1.0 proper for compiling libticables, instead of 0.1 / the silly 0.1 compatibility layer for 1.0 used for most Linux distros, the latter which does not work for the purposes of libticables :)
Search for "--enable-libusb10" in install_tilp.sh.

Debian and derivatives keep a proper libusb 0.1 version, so I don't have the problem; but at some point, I guess I'll have to switch the default to libusb 1.0.
« Last Edit: September 15, 2012, 01:42:00 am by Lionel Debroux »
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.