Author Topic: Get and Send communication  (Read 4445 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Get and Send communication
« on: August 31, 2011, 12:26:16 pm »
I need to know how the Get and Send functions work. Not how to use them, but how they communicate with other devices. I found this picture on the web:
Is it really this simple? Does it just send one byte using this method? No machine id etc.?
« Last Edit: August 31, 2011, 12:40:32 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Get and Send communication
« Reply #1 on: August 31, 2011, 12:55:30 pm »
Oh, it's a lot (lot) simpler than that. Remember that TI-BASIC was designed for people with next to no previous experience in programming (many of us started in TI-BASIC, after all). Here's a brief explanation.

First off, Get and Send are not the functions you're looking for. In TI-BASIC, Get and Send receive from and send to CBL/CBR devices, not calculators. To do calculator-to-calculator linking in TI-BASIC, you use GetCalc.

GetCalc is amazingly simple to use. (After all, BASIC is a beginner's language.) Put a variable name in the parentheses, and GetCalc(VAR) grabs that variable from the other calculator (if it exists) and stores it on this one. So if you want to transfer the list L1 from calculator A to calculator B, all you have to do is run
GetCalc(L1)
from calculator B. That's it!

Well ... there is one catch. The sending calculator (calculator A) must be in "low-power mode." What this basically means is that it needs to be in some sort of standby context, for example on the homescreen or waiting for the ENTER key during a Pause in a program. In other words, it can't be actively calculating anything.

Here's a very stripped-down example of two programs (prgmA for calculator A, and prgmB for calculator B) that use GetCalc.
  • Calculator A runs this first:

  • Then while calculator A is in the middle of the Pause, calculator B runs this:

  • The value of Str1 is now "ABC" on both calculators.
Hope this helps!

(Yay I actually used Homer!)

EDIT: Guess I should have asked you what you wanted before writing a tutorial on a totally different subject. Sorry.
« Last Edit: August 31, 2011, 01:54:47 pm by Deep Thought »




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Get and Send communication
« Reply #2 on: August 31, 2011, 01:51:26 pm »
I need to know how the Get and Send functions work. Not how to use them, but how they communicate with other devices. I found this picture on the web:
Is it really this simple? Does it just send one byte using this method? No machine id etc.?
That's the general protocol for sending/receiving one bit (R and W refer to the two controllable lines in the link cable). The only thing I can see wrong in that diagram is directly under GET: The (R=1 & W=1?) should loop if Y, and continue if N.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Get and Send communication
« Reply #3 on: August 31, 2011, 11:23:14 pm »
Indeed, that is how one bit is sent. For the whole protocol (and more!) I recommend the TI Link Protocol & File Format Guide v1.4. It's old, but that's fine unless you want Nspire and better USB information.
Edit: Given Deep Thought's comment and calc84maniac's post, what's this doing in the TI-BASIC section?
« Last Edit: August 31, 2011, 11:25:41 pm by calcdude84se »
"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 Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Get and Send communication
« Reply #4 on: September 01, 2011, 12:02:55 am »
Indeed, that is how one bit is sent. For the whole protocol (and more!) I recommend the TI Link Protocol & File Format Guide v1.4. It's old, but that's fine unless you want Nspire and better USB information.
I think he got those pics from an online version: http://zastava.student.utwente.nl/linkguide/ti83+/