Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: renatose on June 22, 2012, 05:05:26 pm

Title: nspire serial console
Post by: renatose on June 22, 2012, 05:05:26 pm
Hey!
As I don't have any experience programming on C to the nspire neither I have established the dev-setup to do so I am here to ask for someone to do a simple program (I think ???)...

A serial console capable of sending/receiving text through RS232.
It should be listening constantly for any input and have the capability to send messages also by writing the text to send on the bottom.
If UTF-8 complicates a lot more ASCII text is enough.
Esc/On to close the program.
On each start load the last session, so a cache file should be needed, but this is not mandatory.
Only the amount of text that can fit in the screen is enough: this spares a scrolling option, a big cache file and keeps it very lightweight.

It is to use with an arduino but I'll take care of that part.
I won't give anything but a big thank you to the one who makes this and the promise to show some great developments using these two great tools/toys/educational devices which are the nspire and the arduino!  ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

If anyone wants a mockup to have a better idea of what I want, just ask for it  ;)

EDIT: I don't know if that matters but my nspire is a CAS touchpad...
Title: Re: nspire serial console
Post by: ExtendeD on June 22, 2012, 06:23:54 pm
nspireio will do quite everything you want (RS232 transfers, echoing, scrolling, ...): http://nspforge.unsads.com/p/nspireio
Learning C's basis shouldn't be too difficult to do what you need.
I'm currently working on an easier setup and integrated editor for the Ndless SDK, maybe this could make things easier for you.
Also don't you need to known ARM or C to use an arduino?
Title: Re: nspire serial console
Post by: renatose on June 22, 2012, 06:33:02 pm
It's C++ and there are lot's of examples and very good documentation and libraries and so on - that's a really big world.
Is/will be the ndless SDK working on linux?
The arduino IDE is written in java and it's crossplatform. It's basic but does the job easily.
So since I got the arduino till I had a flashing LED took me 10mins in ubuntu.
Title: Re: nspire serial console
Post by: ExtendeD on June 22, 2012, 06:40:10 pm
You known that C++ is a superset of C.
And yes, the Ndless SDK does work on Linux. The startup guide describes how to set it up: http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction
Title: Re: nspire serial console
Post by: renatose on June 23, 2012, 09:53:57 pm
What about making a function for lua to recieve data? Is it possible to create new events (for Lua) related to the interrupts?

Something like on.serial_in(data_in)