Omnimaga

Omnimaga => News => Topic started by: critor on April 21, 2013, 07:48:20 am

Title: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: critor on April 21, 2013, 07:48:20 am
In a previous news (http://ourl.ca/18754) came out the new Ndless 3.1 r765 with USB support! :D

For the moment, USB support is not available from Ndless programs, but it allows the use of USB devices that are not officially supported in the Nspire OS.

Currently, only USB keyboards and mice are supported through Ndless.



The first problem you'll have is the connection of these devices. Because in order to work properly here, they will have to be connected to the TI-Nspire via a mini-USB A (male) plug you'll have a lot of trouble finding because it has been abandoned by the USB standard.

However, several solutions do exist.


Firstly the barbaric method: just take the mini-USB A (male) <-> mini-USB B (male) cable coming with any TI USB graphic calculator and sacrifice it in order to replace the mini-USB B (male) plug by a USB B (female) plug in order to be able to connect USB devices equipped with an USB A (male) plug.
(http://i72.servimg.com/u/f72/13/23/13/53/54254210.jpg)
(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=169&image_id=2399)



You can also directly buy this type of cable. But as they do not conform to the USB standard, they will be available exclusively online at a few shops and therefore expensive.
(http://i72.servimg.com/u/f72/13/23/13/53/usbmin10.jpg)



Or if you're a little smarter, just use a method of my invention (http://tiplanet.org/forum/viewtopic.php?t=11464&p=137345) which will have all the benefits! :bj:

Simply buy a USB hub that connects to the host via a removable cable and a mini-USB B (female) plug.
(http://i72.servimg.com/u/f72/13/23/13/53/mini-s10.jpg)

You can then connect directly to the TI-Nspire with the mini-USB cable A (male) <-> mini-USB B (male) provided with the calculator!
(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=169&image_id=2318)

No need to sacrifice your cable anymore! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)
And as a bonus you can connect USB keyboard and mouse simultaneously! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

(http://tiplanet.org/forum/gallery/image.php?mode=medium&album_id=169&image_id=2401)

Let's test:

USB mouse and keyboard work very well together! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

For the mice, it is sometimes difficult to activate the pointer when it is hidden - but if you think about it, this is the TI-Nspire OS fault - it is not uncommon to have to polish the TouchPad for long seconds touch before the pointer shows up. So in short nothing wrong, it just works as weel as the TouchPad. ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

For the keyboard, too little keys are supported in order to get rid of the TI-Nspire keyboard.
We've got:
Except those on the numpad, symbols aren't supported yet.



But very soon, you'll be able to use your TI-Nspire handheld with the same comfort as the TI-Nspire computer software! ;D(http://www.omnimaga.org/Themes/default/images/gpbp_arrow_up.gif)

See you soon! :D



Source:
http://tiplanet.org/forum/viewtopic.php?t=11634&lang=en

Link:
Topic with a different video testing USB mice and keyboard together too (http://ourl.ca/18757/345699)
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: ExtendeD on April 21, 2013, 08:58:53 am
Quote
For the keyboard, too little keys are supported in order to get rid of the TI-Nspire keyboard.

I'll rework the entire keyboard mapping in the next update.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Dapianokid on April 21, 2013, 05:05:58 pm
I forsee an internet browser/USB MSD for Nspires...
No joke. Wifi on this thing is now DEFINITELY possible.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Hooloovoo on April 21, 2013, 05:11:54 pm
You can also directly buy this type of cable. But as they do not conform to the USB standard, they will be available exclusively online at a few shops and therefore expensive.
(http://i72.servimg.com/u/f72/13/23/13/53/usbmin10.jpg)
That does conform to the USB standard. The USB A plug makes it act just like a hub, because the Mini-A are the same as standard-A, just a different size.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Sorunome on April 21, 2013, 05:13:52 pm
Haha, nice idea with the hub ^^
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Dapianokid on April 21, 2013, 05:14:29 pm
What he means is that USB manufacturers no longer support mini-A
They just aren't used often anymore
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: DJ Omnimaga on April 21, 2013, 10:42:40 pm
Very cool Critor :D

By the way, by USB hub do you mean "Concentrateur USB"? If it's the case, then a lot of stores here sells those (from $19.99 to $199.99), but if it's not the case, then I would have to look online for that too.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: aeTIos on April 22, 2013, 04:10:45 am
woah, this is totally awesome :D
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Augs on April 30, 2013, 11:32:51 am
Would this work? http://i.imgur.com/KrHsfpT.png
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Darl181 on April 30, 2013, 12:06:40 pm
That's a mini-B plug at the end. Using DIY methods like this (http://ourl.ca/5049/88204) will get it to work (speaking from experience), but if this is all you're going to use it for you might want a proper mini-A plug.

(http://zaurus.daemons.gr/menaie/mirror/usb-miniA&B.jpg)

Note the color of the plastic inside the plug, as well as the shape.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on May 31, 2013, 04:22:13 pm
Hi,
first of all: very cool critor!
second, can you make also a HIDn-version for QWERTZ-keyboards?
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: ExtendeD on May 31, 2013, 04:30:23 pm
 HIDn is already compatible with AZERTY and QWERTY keyboards, just rename the file. Please see the readme file.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Streetwalrus on May 31, 2013, 05:02:21 pm
Hum. He's actually asking for qwertz.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Hayleia on June 01, 2013, 03:01:20 am
HIDn is already compatible with AZERTY and QWERTY keyboards, just rename the file. Please see the readme file.
Hum. He's actually asking for qwerty.
He asked for QWERTZ, not QWERTY, which is logical considering he put "Location: Germany" in his profile ;)
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Streetwalrus on June 01, 2013, 03:47:12 am
And I meant QWERTZ but dat stupid phone acted up once again. :P
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: ExtendeD on June 01, 2013, 05:12:47 am
Sort, i misread your post. I can add it to the next update once I start to rework the keyboard mapping.
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 01, 2013, 03:47:30 pm
Hi,
I did it :D

https://www.dropbox.com/s/kw44x6otnmdnzb6/usbhidn-qwertz.tns

I added also some new features:
Code: [Select]
if ((ns_key & 0xFF) == '1')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '1' + '!');
if ((ns_key & 0xFF) == '2')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '2' + '"');
if ((ns_key & 0xFF) == '3')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '3' + '§');
if ((ns_key & 0xFF) == '4')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '4' + '$');
if ((ns_key & 0xFF) == '5')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '5' + '%');
if ((ns_key & 0xFF) == '6')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '6' + '&');
if ((ns_key & 0xFF) == '7')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '7' + '/');
if ((ns_key & 0xFF) == '8')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '8' + '(');
if ((ns_key & 0xFF) == '9')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '9' + ')');
if ((ns_key & 0xFF) == '0')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '0' + '=');
if ((ns_key & 0xFF) == ',')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - ',' + ';');
if ((ns_key & 0xFF) == '.')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '.' + ':');
if ((ns_key & 0xFF) == '-')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '-' + '_');
if ((ns_key & 0xFF) == '+')
return (ns_key & 0xFF00) | ((ns_key & 0xFF) - '+' + '*');

EDIT:
How did you find out the TI Nspire scancodes?
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 02, 2013, 09:44:40 am
Sorry for spam, I implemented better language support and some SHIFT-modifiers for QWERTY and QWERTZ keyboards

Spoiler For Spoiler:
https://www.dropbox.com/s/0onpyzsjcxkezpf/usbhidn.zip
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 02, 2013, 11:19:14 am
Sorry for spam, I implemented better language support and some SHIFT-modifiers for QWERTY and QWERTZ keyboards

I added now AZERTY modifiers :D
https://www.dropbox.com/s/v8f3ca0dk69kjqk/usbhidn-2013_6_2_17.15.zip
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: Sorunome on June 02, 2013, 03:11:02 pm
I found a intel robot usb hub that also uses micro usb to plug in so it could work (and it looks awesome)
https://theintelstore.com/images/catalog/large/2_2933.jpg
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 02, 2013, 03:49:42 pm
I fixed some unlogical things

https://www.dropbox.com/s/q7ol90p6dn3c7by/usbhidn-2013_6_2_21.45.zip
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 04, 2013, 07:06:18 am
New keys are now available:
QWERTY: `, ~, ', ", #, ~, \, |
QWERTZ: ^, °, ä, Ä, #, ', <, >
AZERTY: ², ù, %, *, µ, <, >

https://www.dropbox.com/sh/cl5ixpest7nov7v/TbSocwGcVa/usbhidn-2013_6_3_23.00.zip
Title: Re: USB mouse & keyboard together on a TI-Nspire thanks to Ndless and a USB hub!
Post by: crazyracer98 on June 12, 2013, 10:56:53 am
In the next time, no updates are planned from my side because of school :( (Sourcecodes are in the downloaded *.zip file)