uip-tool

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

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

uip-tool

Postby sqward » Thu Jan 01, 2015 5:25 pm

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: 4079
Joined: Tue Jan 18, 2011 12:31 am
Location: Cheltenham, UK
Contact:

Re: uip-tool

Postby Dal » Thu Jan 01, 2015 6:54 pm

What a great idea! Thanks for this. Will it only work with NetUSBee?
TT030: 4MB/16MB + Crazy Dots, Mega"SST" 12, MegaSTE, STE: Desktopper case, IDE interface, UltraSatan (8GB + 512Mb) + HXC floppy emulator. Plus some STE's/STFM's

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

Re: uip-tool

Postby sqward » Thu Jan 01, 2015 6:57 pm

Yes, it only supports Netusbee/Ethernac type rom port solution.

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

Re: uip-tool

Postby sqward » Fri Jan 02, 2015 8:05 pm

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
Atari God
Atari God
Posts: 1301
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: uip-tool

Postby mikro » Fri Jan 02, 2015 10:33 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sun Jan 04, 2015 1:59 pm

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 Super Hero
Atari Super Hero
Posts: 558
Joined: Mon Aug 30, 2010 8:36 am
Contact:

Re: uip-tool

Postby dhedberg » Sun Jan 04, 2015 9:00 pm

Ah, this is good stuff! I'll definitely have a look at it ASAP! Thanks!
Daniel, New Beat - http://newbeat.atari.org

User avatar
Orion_
Captain Atari
Captain Atari
Posts: 335
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: uip-tool

Postby Orion_ » Mon Jan 05, 2015 1:47 pm

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

User avatar
Monsoft
Atariator
Atariator
Posts: 27
Joined: Fri Sep 07, 2012 7:15 am
Location: Ascot, UK
Contact:

Re: uip-tool

Postby Monsoft » Mon Jan 05, 2015 2:12 pm

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: 335
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: uip-tool

Postby Orion_ » Mon Jan 05, 2015 5:21 pm

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)

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

Re: uip-tool

Postby sqward » Wed Jan 07, 2015 9:59 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sun Feb 01, 2015 5:05 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sat Feb 14, 2015 1:03 pm

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: 854
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: uip-tool

Postby shoggoth » Sat Feb 14, 2015 7:05 pm

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: 854
Joined: Tue Aug 01, 2006 9:21 am
Location: Halmstad, Sweden
Contact:

Re: uip-tool

Postby shoggoth » Sat Feb 14, 2015 7:09 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sat Feb 14, 2015 7:32 pm

Good to hear, thanks :)

User avatar
CiH
Atari God
Atari God
Posts: 1098
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: uip-tool

Postby CiH » Sat Feb 14, 2015 9:41 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sun Feb 15, 2015 10:25 pm

What screenshot you're referring to? :)

User avatar
CiH
Atari God
Atari God
Posts: 1098
Joined: Wed Feb 11, 2004 4:34 pm
Location: Middle Earth (Npton) UK
Contact:

Re: uip-tool

Postby CiH » Sun Feb 15, 2015 10:41 pm

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: 2063
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Postby calimero » Sun Feb 15, 2015 10:57 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Sun Feb 15, 2015 11:11 pm

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: 2063
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Postby calimero » Sun Feb 15, 2015 11:25 pm

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
Atari freak
Atari freak
Posts: 53
Joined: Wed Mar 12, 2008 4:47 pm
Location: London
Contact:

Re: uip-tool

Postby sqward » Mon Feb 16, 2015 8:49 pm

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: 2063
Joined: Thu Sep 15, 2005 10:01 am
Location: STara Pazova, Serbia
Contact:

Re: uip-tool

Postby calimero » Tue Feb 17, 2015 11:22 am

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
Atarian
Atarian
Posts: 9
Joined: Thu Jan 10, 2013 4:51 pm

Re: uip-tool

Postby Tillek » Sun Mar 01, 2015 9:50 am

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?


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: jfl, kolli and 1 guest