uip-tool

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

uip-tool

Post 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

Last edited by sqward on Sun Jan 24, 2016 12:01 am, edited 3 times in total.
Dal
Administrator
Administrator
Posts: 4199
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: uip-tool

Post by Dal »

What a great idea! Thanks for this. Will it only work with NetUSBee?
STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post by sqward »

Yes, it only supports Netusbee/Ethernac type rom port solution.
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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.
mikro
Hardware Guru
Hardware Guru
Posts: 2217
Joined: Sat Sep 10, 2005 11:11 am
Location: Kosice, Slovakia
Contact:

Re: uip-tool

Post 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.
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post by sqward »

I didn't want to use MiNT and also I'm hoping to have this app baked into a hybrid cartridge :)
User avatar
dhedberg
Atari God
Atari God
Posts: 1200
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: uip-tool

Post by dhedberg »

Ah, this is good stuff! I'll definitely have a look at it ASAP! Thanks!
Daniel, New Beat - http://newbeat.atari.org.
Like demos? Have a look at our new Falcon030 demo It's that time of the year again, or click here to feel the JOY.
User avatar
Orion_
Captain Atari
Captain Atari
Posts: 446
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: uip-tool

Post 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
My retro games shop including Atari ST/Falcon/Firebee games ! -- Free Atari games/demos/tools -- Free Falcon demos/tools
Atari Mega STe 4MB + SD2SCSI 1GB + NOVA ET4000 + Pico PSU + Gotek HxC // Atari STe 2MB
User avatar
Monsoft
Atariator
Atariator
Posts: 27
Joined: Fri Sep 07, 2012 7:15 am
Location: Ascot, UK

Re: uip-tool

Post 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.
User avatar
Orion_
Captain Atari
Captain Atari
Posts: 446
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: uip-tool

Post 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)
My retro games shop including Atari ST/Falcon/Firebee games ! -- Free Atari games/demos/tools -- Free Falcon demos/tools
Atari Mega STe 4MB + SD2SCSI 1GB + NOVA ET4000 + Pico PSU + Gotek HxC // Atari STe 2MB
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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
User avatar
shoggoth
Nature
Nature
Posts: 1013
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: uip-tool

Post 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!
Ain't no space like PeP-space.
User avatar
shoggoth
Nature
Nature
Posts: 1013
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: uip-tool

Post by shoggoth »

Stuff like *this* is what the extra space in the CT60 TOS image should be used for.
Ain't no space like PeP-space.
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post by sqward »

Good to hear, thanks :)
CiH
Atari God
Atari God
Posts: 1156
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: uip-tool

Post by CiH »

Screenshot shows Safari as the browser, so works with a Mac too, cool! :cheers:
"Where teh feck is teh Hash key on this Mac?!"
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post by sqward »

What screenshot you're referring to? :)
CiH
Atari God
Atari God
Posts: 1156
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: uip-tool

Post 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.
"Where teh feck is teh Hash key on this Mac?!"
User avatar
calimero
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2352
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Post 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:
using Atari since 1986.http://wet.atari.orghttp://milan.kovac.cc/atari/software/ ・ Atari Falcon030/CT63/SV ・ Atari STe ・ Atari Mega4/MegaFile30/SM124 ・ Amiga 1200/PPC ・ Amiga 500 ・ C64 ・ ZX Spectrum ・ RPi ・ MagiC! ・ MiNT 1.18 ・ OS X
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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.
User avatar
calimero
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2352
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Post 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?
using Atari since 1986.http://wet.atari.orghttp://milan.kovac.cc/atari/software/ ・ Atari Falcon030/CT63/SV ・ Atari STe ・ Atari Mega4/MegaFile30/SM124 ・ Amiga 1200/PPC ・ Amiga 500 ・ C64 ・ ZX Spectrum ・ RPi ・ MagiC! ・ MiNT 1.18 ・ OS X
User avatar
sqward
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 134
Joined: Wed Mar 12, 2008 4:47 pm
Location: London

Re: uip-tool

Post 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.
User avatar
calimero
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2352
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Post by calimero »

outstanding speed! :)

thank you very much!
using Atari since 1986.http://wet.atari.orghttp://milan.kovac.cc/atari/software/ ・ Atari Falcon030/CT63/SV ・ Atari STe ・ Atari Mega4/MegaFile30/SM124 ・ Amiga 1200/PPC ・ Amiga 500 ・ C64 ・ ZX Spectrum ・ RPi ・ MagiC! ・ MiNT 1.18 ・ OS X
Tillek
Retro freak
Retro freak
Posts: 14
Joined: Thu Jan 10, 2013 4:51 pm

Re: uip-tool

Post 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?
Post Reply

Return to “Applications”