Welcome, Guest. Please login or register.

Author Topic: Anaiis - Highway USB Stack for old classic Amigas  (Read 14306 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Anaiis - Highway USB Stack for old classic Amigas
« on: May 11, 2007, 01:08:09 PM »
ANAIIS, acronym for Another Native Amiga IO Interface Stack, is a quick
and dirty software solution that brings the possibilities of the Universal
Serial Bus (USB) to the basic Amiga 2000, with 68000 at 7.14Mhz, and the
ZorroII card Highway from E3B.
Yes you have read it: 68000, not 68020 or higher, with at minimum Kickstart 1.3
or higher.
On better configuration, it may works, but you should prefer Poseidon.
In this case you must shut down Poseidon and try ANAIIS at you own risk.

ANAIIS, Another acronym with hidden parts:
Native because it was all written in C.
Amiga because this computer worth this kind of program.
Input because it works for mice and keyboards.
Interface because Intuition.
Stack because this kind of program is called like that.

ANAIIS controls:
- hub (not all hubs)
- mice
- keyboard
- printer

A little interface is given to control the stack. You can also control it
via CLI commands:
usbstart, usbreset, usbstop.

You can send files to printer with usbprint command.

You must keep original mice and keyboard, ANAIIS is not yet resident and
doesn't survive at boot time.
A lot of games will certainly not work.

Tested with success with Brilliance, Deluxe Paint, Ced, and perhaps all applications under Intuition.

anaiis.lha (AmigaOS 1.3 and higher) [86 ko]

Enjoy USB on old classic Amiga.
Only Amiga makes it possible!
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #1 on: November 20, 2007, 11:43:39 AM »
6 months later, same player, shoot again...

ANAIIS version 0.92
http://aminet.net/package/driver/other/anaiis

Corrections concerning:
- hubs (now most hubs will work)
- mouse wheel.
- qualifiers on repeating key, pointer moves with keyboard, reset.
- direct printing using fake parallel printer.

The subway version is in the starting blocks...
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #2 on: November 20, 2007, 09:28:47 PM »
@leirbag28
Same dream : to boot My workbench from a key... :lol:
modify some text files, and retreive all my work on a decent PC or Mac... what a dream!!

There will be not enough subway in the world to use with all old fashioned amigas then? huhuhu
Remember that most games doen't work with ANAIIS...
I don't know if it's the same with other usb stacks. (let me know !!!)

@motorollin
Against cough, you should take some syrup, winter is coming, the bears and groundhogs are in point to hibernate, and me... coding for fun.

@all, concerning minimig
I doubt it works without the uhc124 die... :-D
The Minimig conceptor should implement a *true* clockport and then, if you plug a subway, maybe one day...

Tell me if you have ideas on how an usb stack must look on our funny computer (gui, install, ... whatever)

see you, be back soon (next 6 months, for spring I hope :-P)
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #3 on: November 21, 2007, 10:20:35 AM »
Quote

alexh wrote:
I've said it before, I'll say it again. USB is a f#@£ing stupid idea for MiniMig. The CPU power and RAM required for the USB stack combined with the incompatibility native Amiga USB has with Apps such as games makes it a terrible idea.

Why not ? Games should use lowlevel.library, and not kill system.
If Amiga was designed only for games, it would be dead in 1994, and unknown today. I use it for computing, texts, drawings... not for games.

Quote

alexh wrote:
You can plug in modern keyboards and mice via MiniMig's PS2 connectors using $1 USB adapters and have 100% compatibility and no CPU/RAM overhead. It is a no brainer as far as I am concerned.

And where I plug the printer? in the PS2 connector? :lol:

ANAIIS doesn't use a lot of CPU to manage keyboard and mouse.
Use the original gameport mouse and an usb mouse under deluxepaint and try to draw cirles by hand. You will see the *difference*.
I agree with 100% compatibility but not on the CPU/RAM overhead.
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #4 on: December 16, 2007, 11:00:09 PM »
Hi all

Zero Point Nine Cube version comes!
Now ALL Amiga are able to use USB, even twenty years old A1000 :-o



Merry Christmas and best wiches for the next year!
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #5 on: January 02, 2008, 01:20:35 PM »
wow, this thread is not dead!

@Reflex and rkauer
Don't dream, PCI is not a solution for classic Amiga architecture: Zorro still better.

ANAIIS is built in old style Amiga coding, only for uhc124 die, used by Highway and Subway. It's not easy to be generic and keep the minimum of cpu usage. It can't use interrupts as PCI needs to manage usb...
Now you can use Subway on non-accelerated A500, A600, A1000, A1200, and it's better than nothing.

@B00tDisk
 :lol: no way to erase anything, hot unplug and massstorage are not supported (and certainly never)(lack of documentation, time, motivation...)
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #6 on: March 27, 2008, 10:21:10 AM »
Quote

LoadWB wrote:
What kind of support in the USB stack would it take to support an APC UPS (or other) under something like apcupsd?

I'm using apcupsd on Solaris machines using SNMP.  I would love to be able to use an APC UPS via USB on my Amiga.  Would be pretty neat, and I'd even take some time to port apcupsd over to Amiga (would take a while as my time is limited, and this would be a first programming project.)

Yeah, I'm desperate to find something worth-while to get back into programming, and just into programming on the Amiga.


Sorry to update this old thread, but ANAIIS 0.97 is about to be a "public device", like OS4 usbsys.device (Sirion)
Now it can read/write data endpoints via USBIOReq requests :-D
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #7 on: April 09, 2008, 11:21:05 AM »
Quote

RWO wrote:
Thumbs up dude!!

PS: I was wondering if youre HCD(s) support all transfer types? (Control/Bulk/Interrupt/Isochonous)

RWO


Hi Rene (sorry for the loooong response delay... :-))
Control: yes (setup, data in, out) (setup, data out, in)
Bulk: yes (in) (out)
Interrupt: yes (in)
Isochronous yes! (in) This last transfer can't be done via sirion API, but by registering endpoint in the funny polling loop of ANAIIS.
This endpoint has 2 buffers and one interrupt (classic software interrupt).
Each transaction reserves one time slot each millisecond for isochrononous and the interrupt says at caller when the buffer1 is full (of data), and continue to fill buffer2...
This kind of transfer is not very stable on 68000, and maybe I will not release this part, and there is no public API for that... :-(

Other thing concerning usbsys.device: the SeeClaimed tag is used to see all interfaces or function even these in use. But how to see if an interface is used... :pissed:
 
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #8 on: September 18, 2008, 02:33:47 PM »
Hi Folks!

anaiis 0.97 is finally there
http://aminet.net/package/driver/other/anaiis

before installing it, keep 0.96 version... maybe it contains strange bugs (too fast, too slow, too I don't know...)

What's new:
pandora: usbsys.device (or anaiis.device) sirion like interface.
localization: to see texts in french.

Now you're able to code your own usb-coffe-machine driver on a genuine 68000.
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #9 on: December 01, 2008, 10:07:51 AM »
ANAIIS 0.97 30-nov-2008
http://aminet.net/package/driver/other/anaiis

Keyboard leds are now working: Capslock, Numlock and ScrollLock (Numlock and ScrollLock leds are just there to be nice) Scrolllock is used to simulate amiga "help" key.

 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #10 on: December 01, 2008, 01:52:22 PM »
Quote

Thomas wrote:

Quote
Scrolllock is used to simulate amiga "help" key.


Please don't do this, or make it configurable.

Most KVM switches use Scroll-Lock to switch between computers. And it's really annoying if a help window opens everytime you switch to another computer.

This was already a problem with the AmigaOne and OS4.

Also some keyboards (mostly Logitech) don't have a Scroll-Lock key any more.

Bye,
Thomas

Hu, sorry but this is the common key mapping used for the Amiga. Sure, PC keys don't match Amiga keys, but you can use setmap with a modified keymap.
For "help" key, should I use "F12" instead? :idea:
So CapsLock and led are working.
NumLock do nothing but set/unset led.
ScrollLock simulates "Help" and set/unset led.

If someone dislike this, he can disable internal drivers with the adequate option and create a HID driver to do the job as he wants.  :lol:
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #11 on: February 23, 2009, 09:45:27 AM »
0.98 version is here.
http://aminet.net/package/driver/other/anaiis

Now hot plug and unplug are working, and notification of these events too.
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #12 on: June 10, 2009, 11:48:37 AM »
yes, youth bugs go away little by little... still in progress
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #13 on: March 25, 2010, 10:25:24 AM »
0.99 version is here.
http://aminet.net/package/driver/other/anaiis

- external .usbhcd can be used (but not full Sirion compabible due to the lack of docs)
- GUI works with wb1.2 and higher (wb1.1 don't crash but is ugly)
- a lot of things in the GUI have been improved (see statistics menu)

still in progress!
 

Offline GillooTopic starter

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show all replies
Re: Anaiis - Highway USB Stack for old classic Amigas
« Reply #14 on: March 25, 2010, 01:12:14 PM »
Quote from: Gulliver;549616
What about support for mediator? Could you do it?

None and no.

ANAIIS has an open door now: a .usbhcd for ANAIIS is a simple device with a BeginIO vector able to manage RESET, READ, WRITE io requests. READ/WRITE io are classic USBIOReqHCD Sirion compatible. If someone is able to make a lowlevel driver for Mediator, Thylacyne or a openuhci, he (she) 's welcome. But not me, no time and no hardware for that.