Page 1 of 7

uip-tool

Posted: Thu Jan 01, 2015 5:25 pm
by sqward
Hello

Some time ago I've started working on a tool that would allow me to quickly upload files over ethernet (netusbee) to my Atari. This was mainly meant to speed up my development iteration but in the end I've decided to add web interface for the benefit of general public. It doesn't require Sting or MiNT. It's a self-contained binary with uIP embedded TCP/IP stack with DHCP. Run it on your Atari and point your PC browser to the IP address you'll see on the Atari screen. As far as I can tell it works on all TOS machines (tested on ST, TT, Falcon and CT60).

Image

It supports drag&drop of files from your PCs desktop.

It's largely unfinished. I'm hoping someone will help me get HTML part to the point it will be a genuinely useful tool.

Code and a binary can be found here:
git repo: https://bitbucket.org/sqward/uip-tools
binary: https://bitbucket.org/sqward/uip-tools/downloads/

Hope someone will find it useful.

uIPtool tutorial


Re: uip-tool

Posted: Thu Jan 01, 2015 6:54 pm
by Dal
What a great idea! Thanks for this. Will it only work with NetUSBee?

Re: uip-tool

Posted: Thu Jan 01, 2015 6:57 pm
by sqward
Yes, it only supports Netusbee/Ethernac type rom port solution.

Re: uip-tool

Posted: Fri Jan 02, 2015 8:05 pm
by sqward
I think it would be fair to mention that there's a bunch of things that don't work:

1. Only operation supported ATM is file upload from PC via drag&drop.
1. Most of the UI buttons are place holders and doesn't work.

Rest API allows for more but this is currently not wired to the UI.

As mentioned in the first post I'd be happy if someone could help me out with the HTML part.

Re: uip-tool

Posted: Fri Jan 02, 2015 10:33 pm
by mikro
Very nice, indeed.

I personally use a similar solution (same reasoning - faster dev cycle), mint.prg in AUTO + svethlana.xif + 4-line mint.cnf which sets up IP address and runs a small kind of ftp server. So I can use everything FreeMiNT has a driver for.

Re: uip-tool

Posted: Sun Jan 04, 2015 1:59 pm
by sqward
I didn't want to use MiNT and also I'm hoping to have this app baked into a hybrid cartridge :)

Re: uip-tool

Posted: Sun Jan 04, 2015 9:00 pm
by dhedberg
Ah, this is good stuff! I'll definitely have a look at it ASAP! Thanks!

Re: uip-tool

Posted: Mon Jan 05, 2015 1:47 pm
by Orion_
Just tried it, the page load, but I can't send a file using drag & drop, I'm using the latest version of Mozilla Firefox

Re: uip-tool

Posted: Mon Jan 05, 2015 2:12 pm
by Monsoft
I'm not sure if I remember well, but when I was testing this software some times back (as a little beta tester) I had to use Chrome browser.

Re: uip-tool

Posted: Mon Jan 05, 2015 5:21 pm
by Orion_
I tried to drop the file on the left side (as mOdmate advised me) and this somehow worked, but as there is no indicator of data transfer, it's a bit weird on how this works.
I wonder what speed it can achieve (compared to my HxC SD file copier which is very slow, ~8.2kb/s)

Re: uip-tool

Posted: Wed Jan 07, 2015 9:59 pm
by sqward
Orion: you can use curl to upload a file which will give you a good idea of how fast it gets. On ct60 falcon it's about 600kb/s, unaccelerated is around 100kb/s.

curl -0T file IP_ADDRESS/drive/somefilder/remote_filename

Re: uip-tool

Posted: Sun Feb 01, 2015 5:05 pm
by sqward
Hi there,

I've prepared a bugfix version:
* user is now presented with a progress queue
* user is now able to download files via the browser

Please find new executable here:
https://bitbucket.org/sqward/uip-tools/downloads

Re: uip-tool

Posted: Sat Feb 14, 2015 1:03 pm
by sqward
Hi there,

I've prepared a new version, with the following improvements:
* drag and drop behaviour is much more intuitive, you can now drop files on the "file list" window
* various minor d'n'd improvements
* added version numbering

You can download it here:
https://bitbucket.org/sqward/uip-tools/downloads

Re: uip-tool

Posted: Sat Feb 14, 2015 7:05 pm
by shoggoth
Dude, I just tried it, since I'm about to make a fresh install on my CT60.

Hats off, this is probably the single most useful thing I've seen in a while! Thank you so much sqward!

Re: uip-tool

Posted: Sat Feb 14, 2015 7:09 pm
by shoggoth
Stuff like *this* is what the extra space in the CT60 TOS image should be used for.

Re: uip-tool

Posted: Sat Feb 14, 2015 7:32 pm
by sqward
Good to hear, thanks :)

Re: uip-tool

Posted: Sat Feb 14, 2015 9:41 pm
by CiH
Screenshot shows Safari as the browser, so works with a Mac too, cool! :cheers:

Re: uip-tool

Posted: Sun Feb 15, 2015 10:25 pm
by sqward
What screenshot you're referring to? :)

Re: uip-tool

Posted: Sun Feb 15, 2015 10:41 pm
by CiH
What screenshot you're referring to? :)


My mistake, it was the screenshot in the download repository, which is a MS Win version of the browser upon closer examination :oops:

Out of interest, does it work with a non-windows box connected at the other end? If not, no problem as I have a perfectly serviceable laptop.

Re: uip-tool

Posted: Sun Feb 15, 2015 10:57 pm
by calimero
yes, single most impressive and useful tool for Atari! :)

but I have problem: it wont list two of my 8 partitions (both partition have more than 50 files or folders in root).
is there any hardcoded limit (or time limit) that prevent listing these two partitions?

sqward thanx for great job! :cheers:

Re: uip-tool

Posted: Sun Feb 15, 2015 11:11 pm
by sqward
CiH: It should work with any decent browser on OSX. I've got reports it working fine with Firefox and Chrome on Mac. I recommend Chrome because it allows drag and drop of entire folders while Firefox only allows to drop a single file or a flat list of files.

Calimero: there's no limit as to how many partitions it can list. What are exactly the symptoms of the problem? It won't list Mint partitions under TOS and it's not meant to run under Mint so it never will.

Re: uip-tool

Posted: Sun Feb 15, 2015 11:25 pm
by calimero
sqward wrote:Calimero: there's no limit as to how many partitions it can list. What are exactly the symptoms of the problem? It won't list Mint partitions under TOS and it's not meant to run under Mint so it never will.

I try with ctrl-boot (no acc and no auto folder), CT63 mode.

On Mac I try Safari, Chrome and FireFox - all are same: if I try to open C or D partition everything works fine. If I try to open G or I partition I see "Loading..." message and on Atari screen I see "GET: dir" and nothing happens even after two minutes.

G and I partition are same as others (TOS partition), only difference is that there are more that 50 files in root.


---- EDIT ---- regarding speed
Atari Falcon with CT63/76MHz, NetUSBee, testfile: doomu.zip (5,222,400 bytes)

UIP: 23 sec (227KB/s)
Sting, FTP (Litchi): 7min 40 sec

why such difference? maybe my FTP server on Mac OS X cause some problem?

Re: uip-tool

Posted: Mon Feb 16, 2015 8:49 pm
by sqward
The fact that it is not able to list you other drives must be a bug in my code. I'll try to figure something out.

As for the speed, Sting is build of several layers of different subsystems and there's user application on top of that. Uiptool talks to the hardware through very thin TCP/IP stack optimised for very slow, memory constrained devices. So for simple use cases it will be faster. It will get worse when you need multiple connections etc.

Re: uip-tool

Posted: Tue Feb 17, 2015 11:22 am
by calimero
outstanding speed! :)

thank you very much!

Re: uip-tool

Posted: Sun Mar 01, 2015 9:50 am
by Tillek
Any chance of getting it to work with STing using the Daynaport ScsiLink as well? Or is it too different to be able to be done easily?