uip-tool for USB2LAN adapters

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

czietz
Hardware Guru
Hardware Guru
Posts: 744
Joined: Tue May 24, 2016 6:47 pm

uip-tool for USB2LAN adapters

Postby czietz » Sat Jun 09, 2018 11:42 am

There already was MiNTNet support for cheap USB2LAN adapters based on the Asix AX88772 chip. However, these weren't usable under plain TOS because there is no driver (e.g. for STinG) for them. This is why I ported uip-tool to work with these USB2LAN adapters. You probably already know that uip-tool allows you to upload and download files to/from your Atari via a web interface or an API.

A suitable USB addon card supported by the USB stack for TOS is required. Of course, I recommend the Lightning VME for MegaSTEs and TTs.

You can find my port of uip-tool here: https://bitbucket.org/czietz/uip-tools/downloads/. Source code is also available on Bitbucket. I tested it with the Lightning VME on an Atari TT, achieving ca. 130 kB/s download rate. Please read the thread about uip-tool to learn how to use it: viewtopic.php?f=14&t=27365. Also questions not related to the USB support (but e.g. to the web interface) are probably best posted there.

While this ran stable during my tests, I still consider it "proof of concept" or beta. If you want to develop it further, I'm happy to accept any patches.

PS: Only the USB.PRG driver (USB stack) and the driver for your USB card (BLITZ*.PRG in case of the Lightning VME) are required in the AUTO folder. My port of uip-tool brings loads its own internal Ethernet driver; so please don't use ETH.PRG from the USB4TOS distribution.

User avatar
troed
Atari God
Atari God
Posts: 1419
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: uip-tool for USB2LAN adapters

Postby troed » Sat Jun 09, 2018 12:08 pm

Sounds great! - I recall there was a list of suitable adapters using those chips somewhere?

Also, while I'll get one for my Lightning, do you believe this should work with AlanH's Unicorn as well?

czietz
Hardware Guru
Hardware Guru
Posts: 744
Joined: Tue May 24, 2016 6:47 pm

Re: uip-tool for USB2LAN adapters

Postby czietz » Sat Jun 09, 2018 12:21 pm

troed wrote:Sounds great! - I recall there was a list of suitable adapters using those chips somewhere?


Problem is that there are dozens of these cheap Chinese adapters, sometimes with not very unique names such as "USB 2.0 to Ethernet", so it's hard to compile a list. If someone has an extensive list however, we'd like to put a link to it in our Lightning VME wiki.
While testing, we found out that it's best to look whether the photo of the actual adapter has AX88772 (or something like that) on it. Some eBay listings claim that an Asix chip is used, but it isn't. E.g. adapters with 8152 or 81RY52 printed on them use the Realtek 8152 chip instead.

troed wrote:Also, while I'll get one for my Lightning, do you believe this should work with AlanH's Unicorn as well?


I don't have a Unicorn to test, but in theory it should. The API is the same.

User avatar
troed
Atari God
Atari God
Posts: 1419
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: uip-tool for USB2LAN adapters

Postby troed » Sat Jun 09, 2018 12:39 pm

Alright, thanks, found it carried by well known Swedish store chain Clas Ohlson:

"The network card will be shown as ASIX
AX8877A USB 2.0 to Fast Ethernet Adapter
in Device Manager."

https://www.clasohlson.com/se/Externt-n ... rt/38-3732

... omw there now.

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1611
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: uip-tool for USB2LAN adapters

Postby frank.lukas » Sat Jun 09, 2018 12:39 pm

I buy two different Asix USB2LAN Adapter from China and one was right and the other was a Realtek ...
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

User avatar
troed
Atari God
Atari God
Posts: 1419
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: uip-tool for USB2LAN adapters

Postby troed » Sat Jun 09, 2018 3:26 pm

I'm currently stuck at blinking DHCP cursor - it seems it doesn't understand my Airport Extreme. Will debug. Also I'm using a year old Unicorn drivers, so will test with newer ones* as well as with the MSTE Lightning.

The chip was as indicated though and detects properly. Swedes go ahead and visit your local Clas Ohlson ;)

*) new drivers didn't change anything with the Unicorn
Last edited by troed on Sat Jun 09, 2018 8:13 pm, edited 1 time in total.

User avatar
troed
Atari God
Atari God
Posts: 1419
Joined: Mon Apr 30, 2012 6:20 pm
Location: Sweden

Re: uip-tool for USB2LAN adapters

Postby troed » Sat Jun 09, 2018 8:13 pm

Alright, I have it working with the Lightning VME-adapter on my Mega STE.

edit: And now with my Unicorn (on both MSTE and STE) as well.

It turns out it's not enough to use USB.PRG from the USB4TOS distrib at freemint - I had to use the USB.PRG from the Lightning VME driver download also for the Unicorn. If this was supposed to be obvious then sorry, didn't get it ;)

http://www.newtosworld.de/downloads/tre ... htning-vme

All good now - many many thanks for this Christian!

/Troed

edit2: For Unicorn users I'd recommend the 99 SEK USB 2.0 4 port USB hub that Clas Ohlson also carries. Works well with both USB flashdrive and the network adapter connected.
Last edited by troed on Sun Jun 10, 2018 1:44 pm, edited 1 time in total.

DoG
Atariator
Atariator
Posts: 24
Joined: Sun Apr 01, 2018 11:02 pm

Re: uip-tool for USB2LAN adapters

Postby DoG » Sat Jun 09, 2018 8:51 pm

Sweet. Have to get me one of those from Clas Ohlson then. Not often you can get hold of working hardware for the Atari 10 min walk from your apartment these days. ;)

czietz
Hardware Guru
Hardware Guru
Posts: 744
Joined: Tue May 24, 2016 6:47 pm

Re: uip-tool for USB2LAN adapters

Postby czietz » Sat Jun 09, 2018 9:12 pm

troed wrote:It turns out it's not enough to use USB.PRG from the USB4TOS distrib at freemint - I had to use the USB.PRG from the Lightning VME driver download also for the Unicorn. If this was supposed to be obvious then sorry, didn't get it ;)


Interesting. I would NOT have expected this. Looks like I'll have to find out what I changed with regards to USB.PRG so that it maybe can be contributed back into upstream FreeMiNT.

czietz
Hardware Guru
Hardware Guru
Posts: 744
Joined: Tue May 24, 2016 6:47 pm

Re: uip-tool for USB2LAN adapters

Postby czietz » Tue Jun 12, 2018 5:49 pm

I have just uploaded an updated binary to https://bitbucket.org/czietz/uip-tools/downloads/ where I increased the TCP receive window size. At least together with the Lightning VME this considerably speeds up uploads (i.e. PC => Atari).

Also, regarding my last post: I don't see that I made any (relevant) changes to USB.PRG that would explain why it didn't run with the version from the USB4TOS distribution. Strange...

User avatar
sqward
Atari freak
Atari freak
Posts: 72
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool for USB2LAN adapters

Postby sqward » Sat Jun 16, 2018 2:07 pm

Good job. Would be nice at some point to consolidate all the ports into a single source tree.


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 1 guest