Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: ralphdspam on March 24, 2013, 03:06:56 pm

Title: Sending Commands Over Link Cable
Post by: ralphdspam 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!  :)
Title: Re: Sending Commands Over Link Cable
Post by: Lionel Debroux 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.
Title: Re: Sending Commands Over Link Cable
Post by: Streetwalrus 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. ;)
Title: Re: Sending Commands Over Link Cable
Post by: thepenguin77 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 (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4EF4) and Send4Bytes (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4EE2). (Though, just looking at them I don't know how to use them).
Title: Re: Sending Commands Over Link Cable
Post by: ralphdspam 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 (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4EF4) and Send4Bytes (http://wikiti.brandonw.net/index.php?title=83Plus:BCALLs:4EE2). (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?
Title: Re: Sending Commands Over Link Cable
Post by: lkj on March 24, 2013, 06:18:45 pm
There is nRemote (http://ourl.ca/16836) 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.
Title: Re: Sending Commands Over Link Cable
Post by: Deep Toaster 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 (http://wikiti.brandonw.net/index.php?title=83Plus:OS:TI_Keyboard#Key_Codes) but not much.
Title: Re: Sending Commands Over Link Cable
Post by: Xeda112358 on March 24, 2013, 08:07:25 pm
This (http://wikiti.brandonw.net/index.php?title=83Plus:OS:Remote_Program_Execution) 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.
Title: Re: Sending Commands Over Link Cable
Post by: ralphdspam on March 24, 2013, 08:39:23 pm
This (http://wikiti.brandonw.net/index.php?title=83Plus:OS:Remote_Program_Execution) 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?
Title: Re: Sending Commands Over Link Cable
Post by: chickendude 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.
Title: Re: Sending Commands Over Link Cable
Post by: ralphdspam 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!  :)