Omnimaga
Omnimaga => News => Topic started by: Adriweb on August 19, 2012, 12:23:56 pm
-
Hi there,
I managed to code a software (for computer), which Levak improved with a GUI (interface), that enables you to remote control your TI-Nspire.
That's how the chatbot video (http://ourl.ca/16803) is made. I typed questions' text and Levak typed the answers on his computer which controlled the handheld (sent key events) … BTW, it's working on any Nspire. Ndlessed or not. Probably every OS too.
The idea behind this is that while calculator-geeks like us can use it for fun or later for more interesting projects (if we get the other way - calc->computer working?), and I guess teachers can find this software truly useful for their purpose of doing some actions simultaneously on several handheld in their classrooms. For example, open a file, and get started to a specific page, everyone at the same time. I don't think it was possible before. I already have some support for teachers finding this an awesome idea and they can't wait to use it.
It started as a little joke but people started really believing too much and we started feeling sad ... ^^ So… Sorry for that joke that went a bit too far with so many replies etc. :D
( Also, a chatbot would be feasible anyway.... I looked at some Eliza implementation and it's definitely doable. Probably some other bot too. When I have time I can try :) )
BTW, as told above : while it can be helpful for creating some pre-made keypresses sequences (like put some devices into a specific screen so it is ready to do something else, or whatever you want), it will be even better when we (if we find how to do so....) manage to get the other way working : getting keypresses from the handheld and get them back on the computer. Because then, it's just a matter of creating some text-based internet client for example.
Here's a photo for you :
(http://i.imgur.com/y5qJEm.jpg) (http://i.imgur.com/y5qJE.jpg) (http://i.imgur.com/6m7yBm.png) (http://i.imgur.com/6m7yB.png)
(on the interface on can either click on the buttons or directly type with your computer's keyboard and it will send the keypresses)
You can see that nRemote also captures the screen from the HH to display it, as an emulator.
I also might as well tell (probably for legal purposes) that this program does NOT edit, modify or alter TI's libraries or any of their code. It works "as is", as long as you have TINCL or TINCS installed on your system.
(crosspost : http://tiplanet.org/forum/viewtopic.php?f=43&t=10246)
EDIT :
Download : http://tiplanet.org/forum/archives_voir.php?id=6694 (http://tiplanet.org/forum/archives_voir.php?id=6694)
-
I can hardly wait for this come out! It would be definitely be useful to have a couple pre-made keypresses on hand especially for mviewer, gp-SP, or any file really, so I could just press one button and not hunt through my files every time.
-
In the end my comment on how it could be fake was 100% accurate...
(I had said that if I thought it was fake, it would because it seems that the cable you connect to it in the video serves as a link to a computer where answers are typed
-
So for it working the other way..might it be possible to get it to control some on-computer things (read: nspire_emu)? :D
-
(I had said that if I thought it was fake, it would because it seems that the cable you connect to it in the video serves as a link to a computer where answers are typed
Look closer, we took care to remove the cable after we finished the transfer...
But yeah ...
-
Well this is certainly interesting! Too bad I'm going to university this year, because one of my old teachers in middle school would find this extremely useful since he does a ton of classroom activities and such. Good job (again :P) ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)
[edit] Achievement get: Omnom IRC unlocked :P
-
This software could be extremely useful for screen shotting purposes.
-
And what does that have to do with the topic? This is about the nspire, not HP.
-
CompSystem's occasional posts can indeed be off-topic, but are informative. There are worse ways to participate to a forum :)
-
All right, I think we are going to run the last few tests on different setups tomorrow and probably going for release tomorrow evening.
Changelog so far :
- "--no-screenshots" CLI option added to allow no-delay text typing.
- Smaller overall code
- Shift-Hold-xxxxx keys now working
- Meta-key support (i.e : Mac's Cmd => Nspire's Ctrl)
- Version displayed in the frame
- Some under-the-hood stuff
-
Good news, it works perfectly on wifi-connected devices. (students don't even need to be logged in, just connected to the AP) We tried with mixed wired and wifi and there were no problem.
We will release nRemote 1.2 later today.
Next version will include some interface changes for a sequence editor/launcher and a device selection tool (choose to remote all or specific device(s)).
Hopefully we'll also figure out a way to not make the launch of the computer software a necessity (windows only).
Changelog v1.2 :
- redone interface almost from scratch (althought not much visible at first sight when launching nRemote). Better resizing now.
- GUI option to enable/disable live screen capture
-
Seems quite promising, could this eventually allow linked multiplayer games or something like that (gCn comes to mind)?
Also what was Compsystem post? Did someone or himself delete it or was it a spambot? ???
-
CompSystem is not a spambot, AFAICT. But indeed, his post has disappeared. It's a bit of a shame, as while largely off-topic, it was informative.
-
I guess he probably removed it after he realized it was off-topic. Oh well
-
Seems quite promising, could this eventually allow linked multiplayer games or something like that (gCn comes to mind)?
If we can read the keypresses from the device, then yes :) and much more :P
-
nRemote is here !
(http://i.imgur.com/Y1J4b.png)
Download : http://tiplanet.org/forum/archives_voir.php?id=6694 (http://tiplanet.org/forum/archives_voir.php?id=6694)
-
I'm having trouble connecting my nspire cx to nRemote. I put nRemote in the Resources folder so I don't know what's wrong. (I have a Mac)
-
I'm having trouble connecting my nspire cx to nRemote. I put nRemote in the Resources folder so I don't know what's wrong. (I have a Mac)
Hmm, which software ?
(We have seen troubles if it is the Computer Link, because of missing libraries. IF that's the case, try putting in the resources of th Student/Teacher Computer Software folder.
Also, any error messages or anything (on screen)?
-
And.... nRemote 1.4 is here !
With some bugfixes but mainly file transfers via drag'n'drop to the frame and a target choice : all / selection of Nspire.
Download here : http://tiplanet.org/forum/archives_voir.php?id=6694 (http://tiplanet.org/forum/archives_voir.php?id=6694)
(http://i.imgur.com/zD3lL.png)
-
That's great to see it released Adriweb. :D
-
Greate :D Going to download it right now :)
-
Hmm, which software ?
(We have seen troubles if it is the Computer Link, because of missing libraries. IF that's the case, try putting in the resources of th Student/Teacher Computer Software folder.
Also, any error messages or anything (on screen)?
There are no error messages on the screen. It just says "Loading" and does nothing. When I click one of the top buttons, it says "Connect a device"
-
Try the new version (1.4).
Also make sure you are on >= 3.1 (I tested on 3.2 so I hope 3.1 works).
I'am talking about the computer software. Calc OS >= 3.0 is fine.
-
Okay I am using 3.1 for the Student Software so I'll try 3.2 and see what happens. Thanks.
-
Wow, very nice! :D
-
Version 1.5 ;-)
(http://i.imgur.com/dAhaJ.png)
Changelog :
- Devices selection done.
- Application icon added.
- Overall code cleaned.
Here it is :)
http://tiplanet.org/forum/archives_voir.php?id=6694
-
how much does that wifi thingy cost?
-
Referencing this (http://www.bachcompany.com/product.aspx?ProductID=485) and this (http://www.bachcompany.com/product.aspx?ProductID=486), (linked from this (http://education.ti.com/educationportal/sites/US/nonProductSingle/purchase_navigator.html) :P) each calculator thing costs $40 O.O
...and then the access point costs ~1200 :crazy:
:ti:
Edit: also bump for this <_<
So for it working the other way..might it be possible to get it to control some on-computer things (read: nspire_emu)? :D
-
Referencing this (http://www.bachcompany.com/product.aspx?ProductID=485) and this (http://www.bachcompany.com/product.aspx?ProductID=486), (linked from this (http://education.ti.com/educationportal/sites/US/nonProductSingle/purchase_navigator.html) :P) each calculator thing costs $40 O.O
...and then the access point costs ~1200 :crazy:
:ti:
Edit: also bump for this <_<
So for it working the other way..might it be possible to get it to control some on-computer things (read: nspire_emu)? :D
Oo.xX
-
Edit: also bump for this <_<
So for it working the other way..might it be possible to get it to control some on-computer things (read: nspire_emu)? :D
We tried and took a look. It is way more difficult since the function does not exist in every Nspire family software, only in the Navigator one.
The only way we can implement that, is first to rewrite the receive method with the good protocol (Computer request, Calc answers a result size and sends the results of the polling, everything with a timer) and also filter the events sent from the computer to the calc since it does interfere. On the other hand we can put a switch to change mode (sending/receiving).
In any case, the other way is not possible ATM
-
hm I get 404 not found when I try to download it
-
hm I get 404 not found when I try to download it
Owww, thanks.
Sadly, Adriweb is in the plane for 14hours or so and I don't have the latest version.
We'll have to wait until his macbook will land (or crash muhahahhahaha).
We changed the link to the 1.4.
-
I noticed there is a receiveFileFromNode.
So, if you can set up nRemote to receive certain events, you can transfer files from the calculator.
-
I noticed there is a receiveFileFromNode.
So, if you can set up nRemote to receive certain events, you can transfer files from the calculator.
The problem is that we do not know how to receive events from the calculator ! :D (the simplest way I mean, without rewriting the code)
-
I just reuploaded the (working for me) jar file in a zip file. Sorry.
Please test if there is a weird class not found error, as I didn't experience this problem.
Also, yes, we're working on the receive getKey thing, but it's wayyyy harder.
-
Forgive me, but i'm just curious. Are you already back on earth (France) or are you posting aboard a plane? ;)
-
He's back... with a TI-Nspire CM-C ;)
http://tiplanet.org/forum/viewtopic.php?t=10282
-
Hm I have a problem, my CX 3.1 isnt detected, nREmote says loading untill I press a key then it says connect a device. Please help.
-
On which computer OS type and version ? :)
If it's on Windows, have you started TINCS first ?
-
He's back... with a TI-Nspire CM-C ;)
http://tiplanet.org/forum/viewtopic.php?t=10282
I must say those CM-Cs look quite beautiful with that white. I want one too :P
-
Hm I have a problem, my CX 3.1 isnt detected, nREmote says loading untill I press a key then it says connect a device. Please help.
There was also a bug, reported, about a missing class (commproxy), which I can't reproduce.
Can you launch nRemote from a command line ? " java -jar nRemote.jar "
Because if you didn't launch the software before, a specific error popup should tell you that.
-
That still doesn't work.
-
That still doesn't work.
I tested on a "clean" computer (no nRemote / build before) and it worked on the first try... so I don't know what to tell you :o
Can you copy/paste the log when you launch it in command line?
(also, the command line has to be changed to put the path of the real nRemote, which should be inside of the Computer software folder, as shown in the readme)
Anyway, version 1.6 features a resizable screen so that's gonna be useful for presentations (like the navigator's Live Presenter)
-
Hm I have a problem, my CX 3.1 isnt detected, nREmote says loading untill I press a key then it says connect a device. Please help.
This is kinda silly question to ask... but do you have that yellow wireless adaptor?
-
I tried nRemote on WindowsXP and Vista and I do get the graphic to come up,
but it was taking too long to load anything.
Finally, I executed it from the commandline to get some information.
use:
java -jar c:\complete\path\to\nRemote.jar
If there are spaces in the path double quote the path.
Here is what I got:
initialize
Exception in thread "main" java.lang.NoClassDefFoundError: com/ti/eps/navnet/NodeHandle
at Remote.Initialize(Remote.java:38)
at nRemote.main(nRemote.java:51)
Caused by: java.lang.ClassNotFoundException: com.ti.eps.navnet.NodeHandle
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
-
A ClassNotFoundException on a com.ti.eps.navnet.* class certainly means that the program cannot find navnet.jar in the CLASSPATH :)
-
Hm I have a problem, my CX 3.1 isnt detected, nREmote says loading untill I press a key then it says connect a device. Please help.
This is kinda silly question to ask... but do you have that yellow wireless adaptor?
Well, if linked via USB, no need.
@bsl :
What is the version of the computer software you put nRemote in ?
(Eh, I've just checked, navnet.jar is only in the 3.2 software(s) ... >.>)
But if you have the computer link 3.2 installed, you can find navnet.jar and copy it into /lib/ or /java/ inside the computer software.
I think you can find it inside somewhere like here : C:/Program%20Files%20(x86)/Common%20Files/TI%20Shared/CommLib/2/NavNet/
Having to not include the libs is really a pain :(
-
I am using student software version 3.1
I created a batch file to change environmental vaiables.
The error message changes now - so adding to the CLASSPATH can fix it:
set CLASSPATH="C:\Program Files (x86)\Common Files\TI Shared\CommLib\1\NavNet\";%CLASSPATH%
cd "\Program Files (x86)\TI Education\TI-Nspire Student Software"
jre\bin\java -jar "C:\Program Files (x86)\TI Education\TI-Nspire Student Software\nRemote.jar"
-
Good, glad it can make it work that way too (didn't know you could make it a global env var)
So does it run fine after that ?
-
No, it does not run - its just an attempt.
May need to define may paths here.
-
No, it does not run - its just an attempt.
May need to define may paths here.
Ok well, anyway you can lurk in the manifest.mf file to see the 4 needed files :)
-
Sorry for double posting but here is Version 1.6b (bugfix) over 1.6 that aded Screen scaling :)
(http://i.imgur.com/IhVB1.jpg)
Download (http://tiplanet.org/forum/archives_voir.php?id=6694)
-
I tried nRemote on WindowsXP and Vista and I do get the graphic to come up,
but it was taking too long to load anything.
Finally, I executed it from the commandline to get some information.
use:
java -jar c:\complete\path\to\nRemote.jar
If there are spaces in the path double quote the path.
Here is what I got:
initialize
Exception in thread "main" java.lang.NoClassDefFoundError: com/ti/eps/navnet/NodeHandle
at Remote.Initialize(Remote.java:38)
at nRemote.main(nRemote.java:51)
Caused by: java.lang.ClassNotFoundException: com.ti.eps.navnet.NodeHandle
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
exactly what I have
-
Is this only compatible with 3.2 software?
-
Yes (for minor reasons grrrrr :/).
However, having the computer software 3.2 will not do anything bad as it doesn't have anything to do with your calc's OS.
Just like before, when it asks for updating your calc, decline. (you can even firewall it to block in/out connections :P)
And it still works the same for installing/upgrading Ndless.
Pretty much the only new thing (except bringing the 3.2 OS's changes) is the Lua SDK built-in.
Anyway, you can actually download TINCS 3.2 and copy the 4 .jar libs needed by nRemote and put everything in a folder of yours (nRemote +libs) so you wouldn't need anything else anyway (except TINC[L]) installed). The libs required are : commproxy.jar, navnetcommproxy.jar, navnet.jar and upgrade.jar
-
We can also use Levak's vPatch to get rid of those pesky updates...right?
-
We can also use Levak's vPatch to get rid of those pesky updates...right?
I guess so. I haven't personally tested.
But I don't really see at least some kind of manual step in the OS updating process even if TI enables its force upgrade thing. So I believe you're quite safe anyway :)
-
where can I get the 4 .jars
EDIT ah I found them I just didnt see navnet.jar
im updating my computer sofware right now
-
navnet.jar is in another folder, I don't remember which one.
-
When running an ndless program nRemote stops responding. The screen disappears and I have to force close the program by using task manager. Is it not compatible with ndless or does ndless block I/O through USB when running a program?
[edit]Also, where are the recordings saved?
-
When running an ndless program nRemote stops responding.
That's natural: Ndless programs usually disable interrupts :)
-
Is it not compatible with ndless or does ndless block I/O through USB when running a program?
It has always been the case if hte program does not give access to the Nspire event loop (it is possible when using native popups).
[edit]Also, where are the recordings saved?
Somewhere ... most likely in the same folder as nRemote. If not, this means you don't have write permissions.
-
Is it not compatible with ndless or does ndless block I/O through USB when running a program?
It has always been the case if hte program does not give access to the Nspire event loop (it is possible when using native popups).
[edit]Also, where are the recordings saved?
Somewhere ... most likely in the same folder as nRemote. If not, this means you don't have write permissions.
That would probably be because it's located in C, but that's where it's supposed to be, in the TINCS installation folder. Is there anyway to give it write permission? (run as admin?)
-
Not sure running as admin is enough to give write permission.
FWIW, in order to get rid of problems with the UAC, in TILP II 1.16, I ended up writing files to the user's home directory for Windows as well, to match the behaviour of the *nix versions of TILP. The home directory is:
* on Windows XP, C:\Documents and Settings\<username>;
* on Vista and 7, C:\Users\<username>.
Glib has a function for abstracting the platform differences; I don't know what the equivalent in Java is, if any (but IIRC, Java 6 introduced APIs for abstracting some environment / platform differences).
-
Not sure running as admin is enough to give write permission.
I'm not sure if this is relevant, but in Windows Vista and above, programs run from an administrator account don't get administrator privileges by default. You need to use the Run as Administrator function. Or, use Run as Administrator to launch a command prompt, and then start the program from the elevated command prompt. Programs that always need Administrator privileges can use metadata in their header to request elevation whenever the user tries to run it; you can also request elevation via an API call.
I just reuploaded the (working for me) jar file in a zip file. Sorry.
You know, jar files <i>are</i> Zip files. Seriously. Rename a .jar to .zip in Windows and you can extract the contents. It's how I got TI's official SVG mockups of several of their calculators---they were included in a JAR file. Silverlight xap files are also Zips. Resource hacking is fun!
Referencing this (http://www.bachcompany.com/product.aspx?ProductID=485) and this (http://www.bachcompany.com/product.aspx?ProductID=486), (linked from this (http://education.ti.com/educationportal/sites/US/nonProductSingle/purchase_navigator.html) :P) each calculator thing costs $40 O.O
...and then the access point costs ~1200 :crazy:
Cool, one of those stores is 20 minutes from my house. And they have much-less-horribly-expensive CR2032s.
-
I just reuploaded the (working for me) jar file in a zip file. Sorry.
You know, jar files <i>are</i> Zip files. Seriously. Rename a .jar to .zip in Windows and you can extract the contents. It's how I got TI's official SVG mockups of several of their calculators---they were included in a JAR file. Silverlight xap files are also Zips. Resource hacking is fun!
But jar files are not commonly opennable by default by those archive managers (for example the windows one). Therefore you can't attach a reavelant README if the user can't find it. This is why it is a zip of a jar.