Author Topic: Link Routine Testing  (Read 14557 times)

0 Members and 2 Guests are viewing this topic.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Link Routine Testing
« on: August 01, 2010, 08:13:52 pm »
I've finished the link routines, and they work very nicely but I know there are slight differences between the hardware and I need to make sure I am leaving enough room for variations.  To make the routine as fast as possible and therefore usable in realtime games that have a lot of data to send, the routine is time based instead of confirmation based.  There is a minimum threshold of 10 T-states (1.7 microseconds) which is enough to give me 100% error free byte sending on 2 linked 84+'s and should be enough between all z80 calcs, but unfortunately the Nspire emulation is too slow.  Not sure if there's anything I can do about that.

Anyway, I just need to confirm that this works.  If you have an I/O cable and 2 calculators, preferably 2 different types for example: TI-83+ and TI-84+SE, then please help me test this.  The receiver should run program A which just relays to the screen and then have the other calculator run program B which sends a random byte.  Make sure both the numbers are the same on both calculators and repeat a bunch of times and then switch the roles of sender and receiver.

If there is an inconsistency, let me know which calculator was the receiver, which one was the sender, and the numbers that show up on each screen, thanks!
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Link Routine Testing
« Reply #1 on: August 03, 2010, 04:25:35 am »
The strange thing is that my Supersonic Ball game seems to run at the exact same speed on my Nspire as it does on my 83+. If it's faster or slower, I can hardly see a difference. However, it could maybe just be my game. I heard some stuff run much faster on the Nspire.

Also older Nspire OSes emulates 84+ ASM much slower than 2.0.x. This could pose problems for people who got Ndless and are stuck on OS 1.1. I wonder if Nspire linking is possible x.x

Good luck, though!

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Link Routine Testing
« Reply #2 on: August 03, 2010, 04:42:39 am »
Well, those with Ndless might have access to a better emulator in the future so that could actually be an advantage.  However, you can still link an Nspire with another Nspire if they're both running the same OS version since I think the speeds would be close enough in that case.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Link Routine Testing
« Reply #3 on: August 03, 2010, 04:43:54 am »
Yeah. Sadly Calc84maniac lost the entire source code for that emulator (as well as all his other Nspire projects), though, and nobody even figured out how to open the link port yet :(

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Link Routine Testing
« Reply #4 on: August 05, 2010, 12:05:36 pm »
If only I had two calcs... And yeah, too bad that we've been unable to discover how to work the link port.
Good luck with the routine, though! :)
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Link Routine Testing
« Reply #5 on: August 05, 2010, 01:49:16 pm »
Okay, I'll try between an 83+, 83+se, and 84+se.  I'll let you know my results later today. :)

EDIT:  Here are my results:
LinkA - 84+SE OS 2.43
LinkB - 83+ OS 1.19
Failed some of the time.  Here are the numbers that it failed on for me:
A   B
79  159
62  124
12  24
34  69
73  147
106 213
120 241
78  156
127 255
46  93
97  195
116 232
88  176
98  196

LinkA - 83+ OS 1.19
LinkB - 84+SE OS 2.43
Never failed.

LinkA - 84+SE OS 2.43
LinkB - 83+SE OS 1.19
Failed some of the time.  Here are the numbers that it failed on for me:
A   B
100 201
20  41
77  154
23  46
77  154
102 205
90  181
1   2
12  25
108 217
88  177
60  120

LinkA - 84+SE OS 2.43
LinkB - 83+ OS 1.19
Never failed.

LinkA - 83+SE OS 1.19
LinkB - 83+ OS 1.19
Failed some of the time.  Here are the numbers that it failed on for me:
A   B
69  138
126 253
88  161
110 220
99  199
91  182
93  187
114 229
112 224

LinkA - 83+ OS 1.19
LinkB - 83+SE OS 1.19
Never failed.

It appears that each time it isn't receiving the highest bit.  Keep in mind that it worked around 95% of the time, though. :)  I even had some numbers that worked fine some times, but not others. ;D
« Last Edit: August 05, 2010, 03:51:20 pm by ztrumpet »

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Link Routine Testing
« Reply #6 on: August 06, 2010, 12:43:57 am »
Thanks ztrumpet!  I'm working on fixing them right now.  Those results are kind of interesting.  Seems the 83+ never failed as the receiver and most of the errors were bit shifts.  That probably means the receiving routine is a little too fast.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Link Routine Testing
« Reply #7 on: August 06, 2010, 04:26:14 am »
I tried it just a minute ago, and when I run Asm(prgmA on one of my TI84+'es, I see frozen marching ants, which disappear when you press clear. This is the only thing I got the program to do, even when I connected my other TI84+ and run Asm(prgmB on it. It shows the numbers, but does not affect the other calc, on which prgmA is running.
what could be the problem?

EDIT: is it perhaps that I don't have an I/O cable, but an USB connection?
« Last Edit: August 06, 2010, 04:27:24 am by LordConiupiter »
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Link Routine Testing
« Reply #8 on: August 06, 2010, 04:29:24 am »
Yeah, this is for the I/O cable only.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Link Routine Testing
« Reply #9 on: August 06, 2010, 05:55:28 am »
is USB more difficult than I/O? or will you implement USB linking soon in a jiffy?
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Link Routine Testing
« Reply #10 on: August 06, 2010, 06:50:33 am »
USB linking is incredibly complicated.  I don't think its ever been done before in a game, the routines would be MASSIVE and the speed would be way too slow for anything realtime.  It doesn't help either that TI never documented any of the USB functionality so all the information we currently have on it is from hackers and disassembly.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Link Routine Testing
« Reply #11 on: August 06, 2010, 07:19:15 am »
Not to mention the fact that only the 84+'s have them.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline LordConiupiter

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 339
  • Rating: +3/-0
  • Just one of the thousands of Axe-fans...
    • View Profile
Re: Link Routine Testing
« Reply #12 on: August 06, 2010, 09:11:29 am »
okay, so probably it's never gonna be implemented? or could it be done in the far future perhaps? I would appreciate it very much, since the most of the people in my area have a 84+, without a I/O cable (just like me)
everytime that I was down, you would always come around, and get my feedback on the ground. (modified part from 'Seasons in the sun')

No matter how many errors are bothering you, always try to stay rel-Axe!

The HoMM project will be resumed as soon Axe 1.0.0 will be released!
Projects:
Code: [Select]
HoMM:   [==--------]    Project 'resumed': I'm suffering overwhelming new ideas being popped up in my dreams :P
tiDE:   [----------]    Explored and understood the main part of the code: just started writing a Tokenizer.



password of the week: uvanapererubupa (Any pronunciation is the right one ;) )   :D click me, and you'll be raided :D

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Link Routine Testing
« Reply #13 on: August 06, 2010, 11:39:25 am »
Does Ti not package the new calculators with link cables anymore?

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: Link Routine Testing
« Reply #14 on: August 06, 2010, 12:18:48 pm »
I think 83+'s still come with I/O cables, but I believe that 84+'s come with a mini-USB to mini-USB cable.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.