Author Topic: Sending Commands Over Link Cable  (Read 4827 times)

0 Members and 1 Guest are viewing this topic.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Sending Commands Over Link Cable
« on: March 24, 2013, 03:06:56 pm »
Hi, everyone.

I heard it was possible to send commands from one calculator to another over the link port.  How would I go about doing that.

Is there any documentation about this?

Thank you!  :)
ld a, 0
ld a, a

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Sending Commands Over Link Cable
« Reply #1 on: March 24, 2013, 03:27:50 pm »
* on the TI-Z80 series, there are some BCALLs for sending calculators to another - but I shall defer to other, more knowledgeable members of the community.
* ditto on the TI-68k series, where various ROM_CALLs make it possible to send raw bytes over the link port. See my signature for the GCC4TI documentation.
* and for completeness: computer <-> calculator communication can be done through, for instance, libticables + libticalcs, which are the core of TILP but can be used standalone.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #2 on: March 24, 2013, 03:43:37 pm »
Calcsys can do that through the link console. You should take a look at the source to see if you can find something about it. ;)

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #3 on: March 24, 2013, 04:38:22 pm »
If I personally were doing this, I would probably just write my own linking routines using port 0.

However, if you go on wikiTI and go to the bcall section, almost anything that starts with "get" or "send" is what you're looking for. Two that come to mind are Get4Bytes and Send4Bytes. (Though, just looking at them I don't know how to use them).
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #4 on: March 24, 2013, 05:31:02 pm »
If I personally were doing this, I would probably just write my own linking routines using port 0.

However, if you go on wikiTI and go to the bcall section, almost anything that starts with "get" or "send" is what you're looking for. Two that come to mind are Get4Bytes and Send4Bytes. (Though, just looking at them I don't know how to use them).
Thank you.  That's not exactly what I want to do, though.  I want to send either asm code or basic tokens to be executed from the home screen (without a receiver program.).

Would it be possible to do by emulating the TI Keyboard?
ld a, 0
ld a, a

Offline lkj

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +58/-1
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #5 on: March 24, 2013, 06:18:45 pm »
There is nRemote for controlling an Nspire from the computer. So if you want to do it for the Nspires you could look at its source. I don't know about z80 or 68k calcs, though.

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: Sending Commands Over Link Cable
« Reply #6 on: March 24, 2013, 07:54:52 pm »
Would it be possible to do by emulating the TI Keyboard?
I'd imagine that's possible, and it sounds like an interesting project. Doubt TI published the Keyboard protocol though.

EDIT: There's some documentation on WikiTI here but not much.
« Last Edit: March 24, 2013, 07:59:03 pm by Deep Thought »




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #7 on: March 24, 2013, 08:07:25 pm »
This might be what you were looking for. It took a while to remember where I had seen that info before, but I remember thinking it sounded rather snazzy.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #8 on: March 24, 2013, 08:39:23 pm »
This might be what you were looking for. It took a while to remember where I had seen that info before, but I remember thinking it sounded rather snazzy.
Thank you, Xeda112358!  That's exactly what I was looking for.  :D

How would I send the program using the "Silent Linking" mentioned in the documentation?  Would I use something like SendRAMVarData?
ld a, 0
ld a, a

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #9 on: March 25, 2013, 10:06:30 am »
There's also:
http://www.ticalc.org/archives/files/fileinfo/223/22377.html
http://www.ticalc.org/archives/files/fileinfo/270/27066.html

Both include source, though i'm not quite sure that's what you're looking for.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Sending Commands Over Link Cable
« Reply #10 on: March 25, 2013, 07:09:30 pm »
There's also:
http://www.ticalc.org/archives/files/fileinfo/223/22377.html
http://www.ticalc.org/archives/files/fileinfo/270/27066.html

Both include source, though i'm not quite sure that's what you're looking for.
Thanks!  Both of these are useful as well!  :)
ld a, 0
ld a, a