Author Topic: Ndless 2.0 for TI-Nspire Clickpad/Touchpad  (Read 181958 times)

0 Members and 2 Guests are viewing this topic.

Offline Tuxpp

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #75 on: December 21, 2010, 10:21:24 am »
Yes, the average success is indeed 1/2 or 2/3 if I disconnect the calculator.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #76 on: December 22, 2010, 06:23:12 am »
I'm trying to add support for OS 1.7 back, but I am buming into a strange problem.

I have defined this function in libndls.h:
Code: [Select]
static inline BOOL is_cas_model(void) {
return *(volatile unsigned *)0x900A002C == 0x04000001;
}

I am using it this way in utils.c:
Code: [Select]
void ut_read_os_version_index(void) {
// Stage1 is built specifically for an OS version. Dispatch accordingly.
// OS_VERSION_INT and OS_VERSION are passed by the build script.
#ifdef STAGE1
BOOL isncas = !is_cas_model();
// OS-specific
#if OS_VERSION_INT == 17
ut_os_version_index = isncas ? 0 : 1;
#endif
#if OS_VERSION_INT == 201
ut_os_version_index = isncas ? 2 : 3;
#endif
...

When run on the emulator OS 2.0.1, ut_os_version_index is set to 2 for CAS and 3 for non-CAS, but it should be the opposite.
The weirdest part is that when is_cas_model() is not inline, everything works well. Should I suspect a bug in GCC? This file is built in thumb state, I don't know if it is related.
« Last Edit: December 22, 2010, 06:23:52 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #77 on: December 22, 2010, 06:26:43 am »
This is what I got after some testing

Calc is a NspireCas Touchpat
OS 2.0.1.60
In 43 trys I get

-10 successes

-20 times the message "This document format not supported. ndless_installer.tns
but particles works fine nevertheless, so I think it's just an error with the message

-4 reboots

-9 frozen clocks
there is always a slim bar at the top, an "average" and a big one in the up half on the screen
and the bar at the bottom is 5 black lines strong, except once where there were only 3


particles works fine (keys are wrong: w=+  q=-)

but neither hello nor hella
both cause a reboot about 2 of 3 times,
else there is then a black screen whit a frozen clock
also there is often no change at all when I try to open them, I have to press several times enter (or menu 4) sometimes

the rest of the nspire works fine with Ndless installed
keys and touchpat make no problems documents open
(but I didn't test much there yet)


Thats it, I hope it helps.

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #78 on: December 22, 2010, 06:31:48 am »
Thanks shrear for the status.

also there is often no change at all when I try to open them, I have to press several times enter (or menu 4) sometimes

Do you mean when opening hello/hella? These programs merely write to the RS232 output, on real hardware without RS232 adapter nothing really happens.
Ndless.me with the finest TI-Nspire programs

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #79 on: December 22, 2010, 06:36:19 am »
Ok that explains it
But not that they cause a "crash" the first time I "use" them...
« Last Edit: December 22, 2010, 06:58:21 am by shrear »

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #80 on: December 22, 2010, 09:32:14 am »
It looks similar to apcalc's report.
I wonder how specific to the Touchpad the problem is.
Ndless.me with the finest TI-Nspire programs

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #81 on: December 22, 2010, 09:36:10 am »
Support for OS 1.7 has been re-introduced.
There is now a "ndless_installer" for each OS version, the user must choose the right one. This is required by the size constraints imposed by the hack on which Ndless is based.
Getting to the right solution in the build script was quite difficult because of the multi-staged design of Ndless.
« Last Edit: December 22, 2010, 09:38:40 am by ExtendeD »
Ndless.me with the finest TI-Nspire programs

Offline NeoCrisis

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 217
  • Rating: +14/-2
  • tihacker59
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #82 on: December 22, 2010, 09:37:33 am »
glad to hear ^^ does it work on CAS?? ;D



TI-Planet moderator

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #83 on: December 22, 2010, 09:39:12 am »
It does work on CAS 1.7 and 2.0.1.
Ndless.me with the finest TI-Nspire programs

Offline NeoCrisis

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 217
  • Rating: +14/-2
  • tihacker59
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #84 on: December 22, 2010, 09:40:17 am »
Does 2.0.1 mean a calc bought in September? ;D the one my father's gonna offer to me has been bought in September,2010....



TI-Planet moderator

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #85 on: December 22, 2010, 11:36:30 am »
My calc dates from august, so I suppose a Nspire bought in September is NOT going to work ;)
« Last Edit: December 22, 2010, 11:36:49 am by shrear »

Offline NeoCrisis

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 217
  • Rating: +14/-2
  • tihacker59
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #86 on: December 22, 2010, 11:39:44 am »
:'( oh no...... :'( I'll have troubles, but maybe ExtenDeD will release a new version :D



TI-Planet moderator

Offline shrear

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 193
  • Rating: +17/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #87 on: December 22, 2010, 12:00:57 pm »
well I add to my post (#78)
that blockdude also works fine, ...until I try to walk around, except esc and doc no keys react.
but as soon I exit they are back to normal

Edit: After I changed the keys in the source, "playing" works so it's only the keymapping


and my screen was once after being off a time "moved" a few cm to the right, off/on fixed that.
« Last Edit: December 22, 2010, 12:45:13 pm by shrear »

Offline ExtendeD

  • Project Author
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #88 on: December 22, 2010, 12:03:38 pm »
The first point confirms apcalc's report on Touchpads's arrow keys.
And I have frequently the same issue as your second point with my Clickpad.
Ndless.me with the finest TI-Nspire programs

Offline Goplat

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 289
  • Rating: +82/-0
    • View Profile
Re: Ndless 2.0 for TI-Nspire Clickpad/Touchpad
« Reply #89 on: December 22, 2010, 12:25:16 pm »
I'm trying to add support for OS 1.7 back, but I am buming into a strange problem.

I have defined this function in libndls.h:
Code: [Select]
static inline BOOL is_cas_model(void) {
return *(volatile unsigned *)0x900A002C == 0x04000001;
}

This requires that many of the calculator Product ID bits be zero; it will only work on 1 out of 8388608 calculators. Should be

return (*(volatile unsigned *)0x900A002C & 0x04000000) != 0;
Numquam te deseram; numquam te deficiam; numquam circa curram et te desolabo
Numquam te plorare faciam; numquam valedicam; numquam mendacium dicam et te vulnerabo