Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: Keoni29 on March 19, 2011, 01:47:49 pm

Title: Send data using CMD
Post by: Keoni29 on March 19, 2011, 01:47:49 pm
Is it possible to send data to my ti using cmd (.bat file) on my pc?
Title: Re: Send data using CMD
Post by: Ashbad on March 19, 2011, 01:50:21 pm
hello keoni, and welcome!

On a side related note, does your IRL name happen to to be Dong Bin Shin?  ;D  If not, then whoops wrong guy :P

anyways, I don't believe so, and if you can then it would be so tricky it wouldn't be worth it.
Title: Re: Send data using CMD
Post by: Deep Toaster on March 19, 2011, 01:51:07 pm
Not that I know of. TI uses its own link system, which means you'll have to use TI-Connect or TiLP. Maybe one of the two supports command-line sending (if one of them does, it'd be TiLP). Not sure, though.

And is this an issue with Axe in particular? If not I'll move this topic to General Calculator Help.

And welcome to Omnimaga, Keoni29 :)
Title: Re: Send data using CMD
Post by: Keoni29 on March 19, 2011, 02:02:30 pm
I'm making my first real game using axe now. (I made a mario game (sort of) but then disaster stroke. RAM-cleared because it repeated forever :()
Is there an external editor for axe programmes? That would be a lot faster.[/offtopic]

Is there a way to send a value to it so that a programme on my ti can use it.
Title: Re: Send data using CMD
Post by: Deep Toaster on March 19, 2011, 02:07:39 pm
Yep, try Tokens (http://ourl.ca/6647). The newest version supports Axe commands.

\Is there a way to send a value to it so that a programme on my ti can use it.

What do you mean? You can use TI-Connect or TiLP to send variables.
Title: Re: Send data using CMD
Post by: Ashbad on March 19, 2011, 02:09:17 pm
I think he want to know if he can send raw data back and forth -- and the answer to that would be: you would have to write your own program to do so ;)
Title: Re: Send data using CMD
Post by: Deep Toaster on March 19, 2011, 02:10:25 pm
I think he want to know if he can send raw data back and forth -- and the answer to that would be: you would have to write your own program to do so ;)

Hmm, when would you need to send raw data? Your calculator stores data as variables, remember.
Title: Re: Send data using CMD
Post by: Ashbad on March 19, 2011, 02:11:43 pm
I actually have no idea why he would want to do that :P  let's ask him ^-^

And yes, DT is right, the best way might be just to save your data in the form of a large variable such as a program or appvar.
Title: Re: Send data using CMD
Post by: willrandship on March 19, 2011, 02:34:50 pm
If you want to avoid losing source from RAM clears, you could try using DoorsCS, it allows you to edit axe source from the archive, so it's never risked.
Title: Re: Send data using CMD
Post by: Keoni29 on March 19, 2011, 02:40:26 pm
Now I have backup mode on sow nuthing can go wrong ;D

I need to send raw data back and forth because its faster. (multiplay pc vs ti  ;D)
Title: Re: Send data using CMD
Post by: Deep Toaster on March 19, 2011, 02:45:21 pm
I need to send raw data back and forth because its faster. (multiplay pc vs ti  ;D)

Wow, sounds complicated... I don't think anyone's ever done that with the exception of link software and KermMartian's gCn. You could try asking him. Do you know how to use INIR (on the calculator side)? You'll definitely need to know ASM for this stuff.

And if you've ever archived that prgm you lost in a RAM clear, you could try using DrDnar's Archive Undelete (http://www.ticalc.org/archives/files/fileinfo/411/41128.html).
Title: Re: Send data using CMD
Post by: Keoni29 on May 29, 2011, 05:30:14 am
I have another idea: The calculator gives my pc a command to play a certain song. Wouldn't game-music be great?
Title: Re: Send data using CMD
Post by: Munchor on May 29, 2011, 09:17:46 am
I actually remember than NDless 1.1 could be installed with a bat file, so why not?
Title: Re: Send data using CMD
Post by: Deep Toaster on May 29, 2011, 10:03:41 am
I actually remember than NDless 1.1 could be installed with a bat file, so why not?

That batch file simply started up TI's link software and sent Ndless through it. Then it executes a Java app to actually install Ndless.
Title: Re: Send data using CMD
Post by: Keoni29 on May 29, 2011, 12:06:05 pm
Newb here ;D what is NDless 1.1? Os? Connection software?
Title: Re: Send data using CMD
Post by: Deep Toaster on May 29, 2011, 12:20:37 pm
Ndless is a calc-side program that basically enables ASM programs on TI-Nspires. What Scout was talking about is a batch script (.bat file, run in cmd) packaged with Ndless that installs it on your calculator.

But the cmd batch file doesn't actually do the linking or send any data; all it does it start up TI-Nspire Computer Link (http://education.ti.com/educationportal/sites/US/productDetail/us_nspire_computerlink.html), which is TI's software that allows you to link your Nspire to a computer (for non-Nspire calculators you'd use TI Connect (http://education.ti.com/educationportal/sites/US/productDetail/us_ti_connect.html)).

In other words, you'd need more than a cmd script to send data to your calculator. To send variables back and forth between your calculator and computer, use either TI Connect (linked above) or TiLP (http://lpg.ticalc.org/prj_tilp/).
Title: Re: Send data using CMD
Post by: Munchor on May 29, 2011, 04:48:39 pm
Ah I see Deep Thought, I didn't really know how it worked, thanks :)
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 02:32:32 am
I have a TI 84 plus. As far as I know it has never been an Nspire. Does it work on 84 plus too??? (say yes please  O.O)
Title: Re: Send data using CMD
Post by: JosJuice on May 30, 2011, 08:25:49 am
I have a TI 84 plus. As far as I know it has never been an Nspire. Does it work on 84 plus too??? (say yes please  O.O)
Ndless doesn't work on the 84+, but the 84+ can run asm programs without installing anything at all. :)
Title: Re: Send data using CMD
Post by: TIfanx1999 on May 30, 2011, 08:28:23 am
No, but Ndless isn't really relevant to your questions in this case. The TI 83+ series(this includes: TI-83+,TI-83+ Special edition, TI-84+, TI-84+ Special Edition) has built in support for ASM programs. =)

The Nspire is a newer calculator model.

Welcome to the forums by the way! =)

*edit2*:Ninja'd by Josjuice <_<
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 09:48:02 am
Well I know that the 84 series run asm. I thought that there might be a lib for usb connection. Anyone got one ???
Title: Re: Send data using CMD
Post by: Lionel Debroux on May 30, 2011, 09:52:38 am
For example, the libti* series, used as foundation by TILP.
TINCLS exports a public API, that's what Ndless 1.0 & 1.1 used; for your purposes, maybe TI-Connect does, too.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 09:53:43 am
:S translation?
Title: Re: Send data using CMD
Post by: Ashbad on May 30, 2011, 10:00:23 am
Basically, he means that it exports all the stuff you're asking for, it seems. ;)
Title: Re: Send data using CMD
Post by: Deep Toaster on May 30, 2011, 10:09:29 am
Well I know that the 84 series run asm. I thought that there might be a lib for usb connection. Anyone got one ???

What are you trying to do? If you just want to send variables back and forth, use TI-Connect (http://education.ti.com/educationportal/sites/US/productDetail/us_ti_connect.html). If you want a lib that you can use to make your own linking program, there's libticalcs/libticables/whatever packaged with TiLP (http://lpg.ticalc.org/prj_tilp/), as Lionel said.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 10:23:51 am
Well... The title of this topic might be misleading. It should be:Sending data to pc via usb-link to make pc play a certain song
Title: Re: Send data using CMD
Post by: Lionel Debroux on May 30, 2011, 11:36:28 am
Indeed, sending data to the calculator so that it does something, and sending data from the calculator so that the PC does something, are very different :)

With a 84+(SE) or a 89T, interacting with the computer is probably easier than with the other models. The host-capable USB controller of the 84+(SE) and 89T is flexible enough to make these calculators appear as an HID, an MSD, a hub, or several other standard types of devices. Even, potentially, one of the widely supported serial controllers, e.g. FTDI232, CP2102 or PL23xx. And on the computer side, libusb.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 01:06:33 pm
Is there a script or something ;D
Title: Re: Send data using CMD
Post by: Lionel Debroux on May 30, 2011, 01:17:58 pm
Script, probably not as such.
The SWIG languages (e.g. Perl, Python) may help you here, for using or generating bindings for libusb.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 02:25:40 pm
I have manufactured a jack-to-usb cable. Can I use this to transfer data?
Title: Re: Send data using CMD
Post by: Lionel Debroux on May 30, 2011, 02:26:29 pm
If you have a driver for it, or it's one of the standard drivers, probably.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 02:55:17 pm
Using Freq( you can send a sinewave to your pc. Can my pc analyze this signal via my mic-in?
Title: Re: Send data using CMD
Post by: Lionel Debroux on May 30, 2011, 02:57:45 pm
Yes, this can also be done. I've done it recently, for debugging the beginnings of a TI-68k implementation of CALCnet.
Title: Re: Send data using CMD
Post by: Keoni29 on May 30, 2011, 03:09:38 pm
So... What kinda programma/script did you use on the pc-side?
Title: Re: Send data using CMD
Post by: Keoni29 on May 31, 2011, 01:21:41 am
It works! I have a mic signal :D Strong enough for my pc. I can write the software myself.
Title: Re: Send data using CMD
Post by: Quigibo on May 31, 2011, 02:44:04 am
Also, besides using square waves from Freq, you can send your own custom signal with the Port command which also allows you to take advantage of both sound channels.
Title: Re: Send data using CMD
Post by: Keoni29 on May 31, 2011, 08:55:51 am
I need a frequency thats easy to decode.