Author Topic: USB support for Ndless  (Read 13516 times)

0 Members and 2 Guests are viewing this topic.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
USB support for Ndless
« on: March 31, 2012, 02:46:43 pm »
Today, ExtendeD reports on his blog he managed to make USB work on Ndless. Support is rather instable and preliminary right now, but his demo program, which only requires a few lines of code, shows the name of the USB device plugged in.



Obviously, this opens new doors to Nspire development, as you can write programs that uses USB devices, such as flash drives, mice, keyboards, name it. You have to write your own driver though, but porting existing BSD drivers should be possible as the TI-Nspire OS USB stack is a modified version of the BSD one.

Sources:
http://ndlessly.wordpress.com/2012/03/31/usb-hacking/
http://tiplanet.org/forum/viewtopic.php?t=8974&p=122291#p122291

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: USB support for Ndless
« Reply #1 on: March 31, 2012, 02:55:08 pm »
So this works with Fat32 drives, judging by the 4gig size?  Cool :D
Vy'o'us pleorsdti thl'e gjaemue

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: USB support for Ndless
« Reply #2 on: March 31, 2012, 02:59:14 pm »
Any USB host works with FAT32 drives if a FAT32 driver is written for it (and currently there are no USB drivers for Ndless :P)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: USB support for Ndless
« Reply #3 on: March 31, 2012, 03:11:17 pm »
Wow, this is cool o.o

Offline jwalker

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 660
  • Rating: +13/-0
  • Almost everything I have released includes a 'WZ'
    • View Profile
Re: USB support for Ndless
« Reply #4 on: March 31, 2012, 06:22:58 pm »
i cant wait till this comes out
<a href="http://www.nerdtests.com/ft_cg.php?im">
<img src="http://www.nerdtests.com/images/ft/cg.php?val=9612" alt="My computer geek score is greater than 41% of all people in the world! How do you compare? Click here to find out!"> </a>

Support Casio-Scene against the attacks of matt @ matpac.co.uk ! For more information: Casio-Scene shuts down & Matt actions threads

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: USB support for Ndless
« Reply #5 on: March 31, 2012, 07:20:24 pm »
Wow, great work here! I'm looking forward to seeing this

I've also been trying to get USB OTG working except I've had no success XD

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: USB support for Ndless
« Reply #6 on: March 31, 2012, 10:49:04 pm »
I didn't think this would be accomplished within the next few years, considering how long it took on the 84+ for some people to handle USB programming O.O

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: USB support for Ndless
« Reply #7 on: March 31, 2012, 11:12:42 pm »
I didn't think this would be accomplished within the next few years, considering how long it took on the 84+ for some people to handle USB programming O.O
Yeah, that is what I thought. I am glad for this, especially for when I get my hands on an Nspire...

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: USB support for Ndless
« Reply #8 on: April 01, 2012, 02:29:50 am »
I didn't think this would be accomplished within the next few years, considering how long it took on the 84+ for some people to handle USB programming O.O
Yeah, that is what I thought. I am glad for this, especially for when I get my hands on an Nspire...
When you'll receive the CX CAS you won at the zContest :P

Also, this is great news :D
The CX already had a lot of memory, now I see mine with a 500 GB external hard drive on it :P
("disque dur" se dit bien "hard drive" ? ou "hard disk ?")

edit: Multiplayer games !!! *.*
« Last Edit: April 01, 2012, 02:33:58 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: USB support for Ndless
« Reply #9 on: April 01, 2012, 02:39:02 am »
Quote
("disque dur" se dit bien "hard drive" ? ou "hard disk ?")
Usually Hard Disk Drive, and Solid State Drive :)

Quote
edit: Multiplayer games !!!
Indeed. A host-capable controller, such as the ones in the 84+(SE), the 89T and the Nspire, ought to be able to drive a hub (externally powered), and therefore multiple Human Interaction Devices connected to the hub.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Chockosta

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 447
  • Rating: +169/-6
    • View Profile
Re: USB support for Ndless
« Reply #10 on: April 01, 2012, 07:18:23 am »
Wow!
Once again, the Ndless team amazes us!

I'm not sure that the USB key is useful since the Nspire has a huge flash memory...
But it could be used as a very convenient way to send documents to the handheld.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: USB support for Ndless
« Reply #11 on: April 01, 2012, 07:46:30 am »
This is awesome!
All those games, videos, images and lots of other stuff  :o
[grabs 1TB harddrive]  8)

Ndless team, you amaze me again.  :thumbsup:

Some people need a high five in the face... with a chair.
~EC

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: USB support for Ndless
« Reply #12 on: April 01, 2012, 08:31:09 am »
this opens the possibility of making the emulator of bigger games (SNES?) :D
Great job, people! XD
Sig wipe!

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: USB support for Ndless
« Reply #13 on: April 01, 2012, 11:54:50 am »
I do believe in this :D this is another point in history! How easy can it be to use BSD drivers without changes?

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: USB support for Ndless
« Reply #14 on: April 02, 2012, 01:55:05 pm »
It's currently not yet possible, but it hopefully will. The most difficult part is to extract all the dependencies of the driver (for example mass storage also requires SCSI, FAT32, ...)
Ndless.me with the finest TI-Nspire programs