Omnimaga

Calculator Community => Major Community Projects => The Axe Parser Project => Topic started by: Hooloovoo on April 13, 2013, 11:24:50 pm

Title: USBpad8x: USB keyboard axiom
Post by: Hooloovoo on April 13, 2013, 11:24:50 pm
I made a USB keyboard Axiom, which lets you send arbitrary keypresses to your computer from Axe. It works because the Smartview emulator needs to get calculator keypresses to the computer. It turns out that it is just making weird key combinations, and the emulator is interpreting them. BrandonW made a smview, a program that replaces the Smartview app, and I realized that it is just sending USB HID keypresses. I threw that into an axiom, and here it is. There is also also a rather thrown-together demo, which allows you to control Wabbitemu directly from the calculator.
Title: Re: USBpad8x: USB keyboard axiom
Post by: TIfanx1999 on April 14, 2013, 12:11:48 am
Hey, that's pretty sweet! :)
Title: Re: USBpad8x: USB keyboard axiom
Post by: Sorunome on April 14, 2013, 12:12:42 am
so you connect the keyboard to the calc then and you can handle 'em with axe? nice :D
Title: Re: USBpad8x: USB keyboard axiom
Post by: Darl181 on April 14, 2013, 01:46:27 am
Typing this out with the calculator. Wheeeee.
:P
This should make screenshotting a ton easier, especially for those games that use controls based on where keys are on the keypad./me glares at that one guy who made the weird platformer-shooter thing with controls around the XTOn key
 
Also worth noting is On+Clear quits. Has a tendency of sending F12 to the computer tho.

Edit: any chance of tilem controls?
Edit2: wabbit may be behaving differently in wine, but for me it works a lot better if the skin's turned off.
Title: Re: USBpad8x: USB keyboard axiom
Post by: DJ Omnimaga on April 14, 2013, 02:55:15 am
Wow that is great! I am curious about if it could support WabbitEmu and TilEm like Calc2Key does? Unfortunately Calc2Key requires TiLP to installed to work so that can leave some people out. At least your program looks like only an USB cable is required. :)

EDIT: Nevermind, Darl tells me that it actually works with Wabbit.
Title: Re: USBpad8x: USB keyboard axiom
Post by: shmibs on April 14, 2013, 03:05:29 am
dj, if it lets you send arbitrary keypresses, then all you have to do is write a small program that detects a certain button being pressed on the calc and sends the related keybinding for the emulator, right?
/me goes to try it out.
this sounds absolutely fantastic, by the way =DD

EDIT: you should really use a loop and a couple of lists in that example program instead of writing
Code: [Select]
getKey(blah)??bloo->{A++}{over and over :P
Title: Re: USBpad8x: USB keyboard axiom
Post by: Darl181 on April 14, 2013, 03:11:10 am
Basically what shmibs said. It kind of acts like normal computer keyboard, but keys mapped to match with wabbitemu.
So someone with this could go to a library or something, plug it into a random computer, and it should type like a normal keyboard :D
Title: Re: USBpad8x: USB keyboard axiom
Post by: Lionel Debroux on April 14, 2013, 03:11:31 am
Looks pretty interesting indeed :)
Spread out the word at TI-Planet, http://tiplanet.org/forum/viewtopic.php?t=11570

Are the keypresses recognized by computer-side SmartView the ones defined in the USB HID standard (meaning that the SmartView app, smview and your axiom make it possible to control the computer outside SmartView without additional software), or a different set (assuming it's possible to send thoroughly custom keypresses, I don't remember and I don't have time to check the USB HID standard again right now) ?
BrandonW's Linky for the 89T, in which I filled up the internal calc keyboard -> US language USB HID keyboard mapping code, produces standard USB HID keypresses, and I've actually used the 89T running Linky in the real world to deal with an embedded ARM board, at work, before we bought USB mini-A male <-> A female cables.
Title: Re: USBpad8x: USB keyboard axiom
Post by: critor on April 14, 2013, 03:28:04 am
Would it be possible to have a port of this for the TI-84 Plus C Silver Edition ? ;)

A SmartPad App for this calculator doesn't seem to be planned by TI.
http://education.ti.com/en/us/products/calculators/graphing-calculators/ti-84-plus-c-silver-edition/tabs/overview#tab=applications
Title: Re: USBpad8x: USB keyboard axiom
Post by: Hooloovoo on April 14, 2013, 10:13:31 am
I don't have an 84PCSE, so I can't say for sure.
Everyone asking for other emulator support: If you want, you can modify the Axe source so it makes the keypresses for other emulators or other things.
Linonel: yes, they are defined by the HID standard, and they are standard USB keyboard keypresses.
shmibs: yeah, I probably should do that, but I actually wrote that program with python and sourcecoder.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Dapianokid on April 14, 2013, 02:32:35 pm
I don't know how to use this Axiom to use my calc, but this would be great for TASing
Title: Re: USBpad8x: USB keyboard axiom
Post by: TIfanx1999 on April 14, 2013, 03:35:52 pm
Yepp, that seems to be the general consensus. :D
Title: Re: USBpad8x: USB keyboard axiom
Post by: Hooloovoo on April 14, 2013, 11:14:00 pm
Critor: just found this:
http://education.ti.com/en/us/products/computer_software/ti-smartview-software/ti-smartview-emulator-software-for-the-ti-84-plus-family/features/features-summary (http://education.ti.com/en/us/products/computer_software/ti-smartview-software/ti-smartview-emulator-software-for-the-ti-84-plus-family/features/features-summary)
Quote
Easy operation with the educator's computer or calculator as a remote keypad
They must be using an app, because only TI would only ever put a 500B program into a 16K app.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Geekboy1011 on April 15, 2013, 01:00:29 am
works well only problem i see is it doesn't like to send more then 1 key press at a time. maybe 2 on occasion.

(http://img.removedfromgame.com/imgs/usbpad8x.gif)

you can see it here
Title: Re: USBpad8x: USB keyboard axiom
Post by: Streetwalrus on April 15, 2013, 04:30:10 am
It really works great. :D I'm typing this line with my calc. :P
Now I need to make an azerty keyboard prog so that I can use my comp when my mom takes my keyboard away. <_<
Does anyone happen to know a getkey-like program for the computer ?
Title: Re: USBpad8x: USB keyboard axiom
Post by: Hooloovoo on April 15, 2013, 09:05:00 am
 
works well only problem i see is it doesn't like to send more then 1 key press at a time. maybe 2 on occasion.

(http://img.removedfromgame.com/imgs/usbpad8x.gif)

you can see it here


Yeah, I don't think that the built-in protocol does multiple keypresses, except when a modifier, such as ctrl, shift, and alt, are pressed. I am going to try rewriting the program using direct port access, using Linky as an example.
Title: Re: USBpad8x: USB keyboard axiom
Post by: ben_g on April 15, 2013, 01:42:37 pm
Are you using the same protocol as a USB keyboard uses to communicate with a computer? Because that should be able to handle multiple key presses. It often happens that you need to press 3 or more keys at the same time when you are playing games, and a USB keyboard can handle that.

But anyway, it looks cool. I'm deffinately going to download this when I find my USB cable.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Lionel Debroux on April 15, 2013, 01:44:54 pm
Quote
Are you using the same protocol as a USB keyboard uses to communicate with a computer?
Yup, that's what he wrote above, and confirmed after I asked for more details :)
Title: Re: USBpad8x: USB keyboard axiom
Post by: ben_g on April 15, 2013, 01:55:31 pm
It would be even more interesting if you could also send data the other way, for example to stream an image to the calc. Then we could use a computer for doing complex calculations for the calc, which makes stuff like 3D and multiplayer games a lot easier (okay, maybe that's cheating, but it's still cool), or for streaming the screen image from wabbitemu, so you can see how the program you emulate looks on a real screen (since a real screen can react slightly differently than the emulated one.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Dapianokid on April 19, 2013, 06:27:05 pm
Somebody modify the code to allow more than one keypress and have a utility on the computer to tell you what corresponding key you are pressing.. I would also like to be able to configure it hehe
I played VBA on my computer using a TI84+ I felt so proud xD
Title: Re: USBpad8x: USB keyboard axiom
Post by: Ft.lou on May 07, 2013, 07:57:19 am
what can you type? only numbers?
Title: Re: USBpad8x: USB keyboard axiom
Post by: Hooloovoo on May 07, 2013, 08:22:21 am
You can type anything you want, you can change the axe source code and compile it to be whatever you want it to be.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Ivoah on October 05, 2014, 08:57:31 pm
I tried sending it to my TI-84+ Silver Edition and TI-Connect said that the program was made for a newer OS version. I have 2.55, which I think is the latest.
Title: Re: USBpad8x: USB keyboard axiom
Post by: DJ Omnimaga on October 06, 2014, 01:35:36 am
I certainly hope that he didn't make the program OS 2.71MP-only... O.O

That OS is actually fake to a certain extent and horribly buggy. It does exist, but it was made by the community as an april fools joke.


Otherwise it might be just TI-Connect acting up because OS 2.55MP is definitively the latest official OS available for the 84+SE and 4.2 for the 84+CSE.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Ivoah on October 06, 2014, 11:04:26 am
When I try to send it using TiLP, it freezes up.
Title: Re: USBpad8x: USB keyboard axiom
Post by: Geekboy1011 on September 19, 2015, 04:01:33 pm
Bump!~

Made a non axiom program version of this for the CSE.
https://dl.dropboxusercontent.com/u/98196116/MakerFaire2015/Maker%20Faire%20Keyboard%20Calc.zip
Enjoy!
Title: Re: USBpad8x: USB keyboard axiom
Post by: Sorunome on September 20, 2015, 02:26:36 pm
Sounds awesome!
Any chance for a demo video? (maybe after/during the fair? :P)
Title: Re: USBpad8x: USB keyboard axiom
Post by: Geekboy1011 on September 20, 2015, 02:42:12 pm
Probably during the faire someone will use it to show off the display
Title: Re: USBpad8x: USB keyboard axiom
Post by: neuronix on December 21, 2015, 08:44:56 am
I don't send your axiom on my calculator.
I have a TI 84+ and TI Connect CE say this file is build for other version  :-\
Title: Re: USBpad8x: USB keyboard axiom
Post by: TIfanx1999 on December 21, 2015, 12:51:44 pm
If you have a regular TI-84+ (not CSE) try the file in the 1st post on page 1. Otherwise try Geekboy's.
Title: Re: USBpad8x: USB keyboard axiom
Post by: neuronix on September 07, 2016, 11:41:39 am
That is the file in the 1st post on page 1 that it isn't possible to send to my calc (TI 84+ SE) :(



TI Connect CE says me "Not for you"  with the version in the 1rst post :-[

Edit (Eeems): Merged double post