Author Topic: nspire serial console  (Read 4900 times)

0 Members and 1 Guest are viewing this topic.

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
nspire serial console
« 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

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...
« Last Edit: June 22, 2012, 05:12:54 pm by renatose »

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nspire serial console
« Reply #1 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?
Ndless.me with the finest TI-Nspire programs

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: nspire serial console
« Reply #2 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.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nspire serial console
« Reply #3 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
Ndless.me with the finest TI-Nspire programs

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: nspire serial console
« Reply #4 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)